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

Loading different subforms

Status
Not open for further replies.

lesp1

Technical User
Feb 18, 2002
15
0
0
GB
I have a form set up with a subform, when I enter a contract number into a text box the form ReQueries and shows contract specific data in subform (the subform shows relevant items with blank volume fields). A month is entered into another text box on the main form, then data is entered in the subform number fields, and finally there is a button that writes the records to the database.

Problem: Data is loaded monthly, ideally I need some means of testing whether the month and contract already exist in the table, if they don't then the above subform is OK, however if they do I would like a different subform loaded.

How can I accomplish this?

 


subform.SourceObject = "nameform"

and

subform.requery Christiaan Baes
Belgium
"What a wonderfull world" - Louis armstrong
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top