Changing record source in VBA

Smee

Registered User.
Local time
Today, 14:26
Joined
Dec 16, 2003
Messages
69
Hi Guys :confused:

Is it possible to change a forms record source from within an event procedure?

i.e Form Rates record source is currently Table [x] and I need to change it to Query [y].

I will then need to set which field each of the text boxes uses in the new record source.

Basically I need to play with the properties control options with VBA

Any and all help greatly apprieciated. :D

Thanks

Smee
 
Code:
For a form's RecordSource:

Me.RecordSource = "MyQuery"


For a control's ControlSource:

Me.ControlSource = "MyField"
 
Thanks mile :D
 

Users who are viewing this thread

Back
Top Bottom