CurrentDbTools Controls

User guide for Access developers · Early Alpha

www.currentdbtools.com

See the controls

Hotel room bookings on a weekly timeline
Resource Scheduler
Hotel rooms in To clean, Inspection and Ready columns
Kanban Board
Calendar with week numbers and date shortcuts
Date Picker
Expanded navigation menu for hotel rooms
Sidebar
Numeric inputs with horizontal and vertical arrows
UpDown

Getting started

  1. Close Access and run Setup using the same Windows account you use for Access. Setup detects whether you use 32-bit or 64-bit Access.
  2. Open a form in Design View. Choose Insert ActiveX Control and select the control you want from the names beginning with CurrentDbTools..
  3. For early-bound VBA, press Alt+F11 to open the VBA editor. Choose Tools → References and select the CurrentDbTools libraries you use. Each control has its own library. Press F2 to inspect its types and members in the Object Browser.
  4. Name the control as shown in the example and place the code in Form_Load. The .Object property returns the embedded ActiveX object.

Date Picker

Choose CurrentDbTools.DatePicker for a date field or date range. Handle ValueChanged to filter a list when the user picks a date.

Dim picker As CurrentDbTools_DatePicker.DatePicker
Set picker = Me.ctlDatePicker.Object
picker.SetValue Date

Kanban Board

Choose CurrentDbTools.KanbanBoard to organize work as cards in columns. Use stable keys from your tables for columns and cards. Handle ChangeRequested to validate and save a move before accepting it.

Dim board As CurrentDbTools_KanbanBoard.KanbanBoard
Set board = Me.ctlKanban.Object
board.AddColumn "open", "Open"
board.AddColumn "done", "Done"
board.AddCard "task-1", "open", "Inspect room"

Resource Scheduler

Choose CurrentDbTools.ResourceScheduler to schedule bookings by room, employee or other resource. Handle ChangeRequested to validate and save a proposed change. BookingChanged reports the accepted change.

Dim planner As CurrentDbTools_ResourceScheduler.ResourceScheduler
Dim start As Date
Set planner = Me.ctlScheduler.Object
start = Date + TimeSerial(9, 0, 0)
planner.AddResource "room-1", "Room 1"
planner.AddBooking "booking-1", "room-1", start, DateAdd("h", 1, start), "Booking", 0

UpDown

Choose CurrentDbTools.UpDownControl to increase or decrease a value with arrow buttons. Set a minimum and maximum, then handle Change to respond to the new value.

Dim spinner As CurrentDbTools_UpDownControl.UpDownControl
Set spinner = Me.ctlUpDown.Object
spinner.SetRange 0, 10
spinner.Value = 3

Hotel Demo

Open Start → All apps → CurrentDbTools → CurrentDbTools - Hotel Demo. The demo uses fictional bookings and rooms. You work in your own local copy, which Setup keeps when you update or uninstall the controls.

If Access shows the yellow security bar, choose Enable Content if you trust this copy of the demo and your organization allows it. How Access database trust works.

Your working copy is stored in %LOCALAPPDATA%\CurrentDbTools\Controls\HotelDemo.