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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change the source table of a form

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Newbie Question: How does one change the source code of a form? Thanks
 
in form design, in the property RECORD SOURCE, choose your source

or do you mean you want diff sources at diff times for the same form?
 
Do you want to change the forms record source at runtime?
If so just put this in your code
Forms("formName").RecordSource = "table or query name"
 
I'm not sure how much of a "newbie" you are, so please don't take offense if this is way too basic an answer... but whenever I've been asked this question, what the person has been looking for is: In design view, at the upper left corner (about where the horizontal and vertical rulers meet), is a box. Right-click in the box, then click the properties button on the resulting popup. Select the "Data" tab in the Properties dialog, and change the Record Source to the new table (or query).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top