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

Adding with SQL data

Status
Not open for further replies.

vlingen

Programmer
Aug 4, 2006
31
US
Hi All,

I am having a "timing" issue. I have an Add button that opens a form in Add mode. The Invoice header info on top is linked by InvoiceId (autonumber)field to an Invoice detail subform on the bottom.

Tables:
InvoiceHeader: InvoiceID, CustId, InvDate...
InvoiceDetail: InvoiceID, Description, Amount...

When the form opens all the header info is defaulted from other locations, so the user just needs to click and update info in the subform.

Issue: SQL has not returned the InvoiceID to complete the link in the subform.

How do I refresh the header to generate the InvoiceId so I can enter data in the Invoice Detail subform without getting an error?

Thanks!
 
Issue: SQL has not returned the InvoiceID to complete the link in the subform.

What is the SQL?

Ever notice how fast Windows runs? Me neither.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top