One button two functions

  • Thread starter Thread starter Kerman SPI
  • Start date Start date
K

Kerman SPI

I need a button on my form to do two things. 1. Run an update querie I have
created which updates all records with a specific [CertNumber] to a
[DateIssued]. (Could be 1 to 100 records updated) 2. After update querie
has run, print a report named "Cert Number by date Issued". I have gotten
this to work through a macro combining 1 & 2, but the [CertNumber] is asked
for again (Twice).
Example: Click button: "Please enter Cert Number", "Please enter Date
Issued", and "Please enter Cert. Number". I really dont want to enter the
Cert. Number twice. Any Ideas...Thanks...Randy
 
Could you have a text box on your form, where the user
enters the CertNumber, then reference that for both the
query and the report.

[forms]![frm_Main]![CertNbr]
would be utilizied in your query and report.

This is where your form is frm_Main and the field on the
form is CertNbr. You can add some vaildation at
the "Update" button if required.

SteveD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Update query, cant get it to work 2
Not sorting numbers correctly? 4
Help with update query 2
record not found 2
Message box for a query? 4
If, then, vlookup 1
SSN Lookup 0
Help prevent report from running 1

Back
Top