Developing a database for visually impaired persons scheduling donation pickups (uses an audio reader for fields). Have a simple table " Truck_Routes" with customer ID, street address, suite, company, city, state, zip, contact name, contact phone number, and several donation information fields.
Trying to develop a form that auto fills: suite, company, city, state, zip, contact name, and contact phone number based on an existing combo box: cboAddress ....(street address). Spent hours on the web emulating other examples, but can't get vba to work.
Street Address - combo box with "After_Update event procedure"
Private Sub cboAddress_AfterUpdate()
PopulateFields
End Sub
Private Sub PopulateFields()
Me.Suite = DLookup("Suite", "Truck_Routes", "Street Address=" & Me.[cboAddress & "'"])
Me.Company = DLookup("Company", "Truck_Routes", "Street Address=" & Me.[cboAddress & "'"])
Me.City = DLookup("City ", "Truck_Routes", "Street Address=" & Me.[cboAddress & "'"])
Me.State = DLookup("State ", "Truck_Routes", "Street Address=" & Me.[cboAddress & "'"])
Me.zip = DLookup("zip ", "Truck_Routes", "Street Address=" & Me.[cboAddress & "'"])
Me.ContactName = DLookup("ContactName ", "Truck_Routes", "Street Address=" & Me.[cboAddress & "'"])
Me.ContactPHone = DLookup("ContactPhone ", "Truck_Routes", "Street Address=" & Me.[cboAddress & "'"])
End Sub
Fields in form are navigated using "tab" key, audio reader reads the field. Default value for each field is the name of the field so it could be read to the operator. Any thoughts/recommendations?