View Full Version : Can forms read from different tables


paulmcdonnell
05-24-2001, 12:04 AM
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
05-24-2001, 08:16 AM
You answered your own question without knowing it! http://www.access-programmers.co.uk/ubb/smile.gif
You would use the forms RecordSource property
Forms!YourForm.RecordSource= "TblName or SQL string"