Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access 2000 - Drop box

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm tryig to update a list box on the same form as a drop box - I want to use the drop box to select the record source for the list box...
this is driving me quietly insane - i've RTFM, technet etc,
and no joy :(

Anyone got any idears ?
 
You need to refresh the recordsource of the form
by using a book mark
look at this snippet:
-------------------
Dim SyncCriteria As String
Dim f As Form, rs As Recordset

'Define the from object and recordset object for the AutoCAD form
Set f = Forms(Screen.ActiveForm.FormName)
Set rs = f.RecordsetClone

' define the criteria used for the sync
SyncCriteria = "[YourField]='" & Me![YourField] & "'"

' find the corresponding record in the Parts table
rs.FindFirst SyncCriteria
f.Bookmark = rs.Bookmark
--------------------- DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top