Programmatically changing the Record Source

Nelmo

Registered User.
Local time
Today, 10:43
Joined
Mar 13, 2001
Messages
17
How do I change the Record Source of a Form from a Command Button on the same Form?

i.e. Form = frmA
Record Source = qryA

Click a button to change the Record Source, to:

Form = frmA
Record Source = qryB

Thanks in advance

NEL
 
amazingly


Code:
Me.RecordSource = "MyQuery"


:D
 
Thanks Mile-O-Phile


So easy when you know how!!!! ;)


NEL
 
Thanks Mile-O-Phile!!! i have been finding this answer for like 2 days now!!! THANX A MILLION!!!
 
one more thing, :D is there any way i can set the record source from a combo box? i would like to have a combo box that contains a list of selection, and when the user updates the combo box, i want the subform to have a new record source as selected. can anybody help me out? thanx in advance... :)
 

Users who are viewing this thread

Back
Top Bottom