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

Update temp table when form closes

Status
Not open for further replies.

ad2

Technical User
Dec 31, 2002
186
US
Hi,

I have an application that has several forms. At the end of the day the manager wants to run a report of all the records entered that day from all froms. I have a field on each table, RecordDate, that captures the date the record was created.

I was thinking of creating a temp table, and have each form write the form id and subject id to the temptable. I was thinking of having code that would do this on each form's on close event.

Would eanyone have an example of VB code that would write fields to another table?

Thanks, Ad2
 

Why add an extra table? Since you all ready have a field that indicates when the records was created, why not just run a query to get a complete list of the day's entries?


Randy
 
Too many forms, query give false results. But I'll work on it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top