Can forms read from different tables (1 Viewer)

paulmcdonnell

Ready to Help
Local time
Today, 07:27
Joined
Apr 11, 2001
Messages
167
I'm sure that one form can be used for many different data sources with some code attached to a command button....How do you set the data source using some code so that the form opens and reads from the specified table or query....
Anyone know? would be greatful if you could help
Cheers
Paul..
 

charityg

Registered User.
Local time
Today, 07:27
Joined
Apr 17, 2001
Messages
634
You answered your own question without knowing it!

You would use the forms RecordSource property
Forms!YourForm.RecordSource= "TblName or SQL string"
 

Users who are viewing this thread

Top Bottom