MS Access DB – Query

15 pts.
Tags:
Microsoft Access
Microsoft Access 2003
Query
I have an Access database this is in place for in person registration at a convention. The registration system uses a few data fields then prints a report. I can't get the report to work the way that i want it to. I need the report to pull the record that i just entered via query (or whatever if i'm wrong about that) and print a "reminder" or "receipt" for the person that just registered. This "receipt" needs to contain 4 data fields from the 8 data field DB. I need it to only pull the record being saved as to act as the receipt/reminder for the time that they are to return. They pick this time themselves as they register. This is an Access 2003 DB

Answer Wiki

Thanks. We'll let you know when a new response is added.

Simply have a unique id in the table (it could be a column set up as AutoNumber). Have that column on the form as a bound column from the table. Then when you print from the form use the OpenReport method and put the unique id in the where parameter of the OpenReport method. The report will print only for that unique id.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Phixious
    Could anyone give me an example of the arg. if the uniqueID field is "group #"
    15 pointsBadges:
    report
  • Randym
    This assumes that the field on the form is bound to the table and is the same name: DoCmd.OpenReport "name", acViewNormal, , "[Group #]= " & Me![Group #] "name" is the name of the report. Me![Group #] is a way of referencing the field on the form. This assumes that you used AutoNumber so Group# is a long integer. If it is alpha numeric, you must enclose quotes like this: DoCmd.OpenReport "name", acViewNormal, , "[Group #]= '" & Me![Group #] & "'"
    1,740 pointsBadges:
    report
  • Bonjour
    DoCmd.OpenReport “name”, acViewNormal, , “[Group #]= ” & Me![Group #]---This was helpful. Thanks.
    15 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following