Report criteria by Form

MrAustin

Registered User.
Local time
Today, 00:22
Joined
Oct 4, 2004
Messages
32
Hi all,

I am using the following code on a command button:

Code:
Private Sub cmdPrintTicket_Click()

    DoCmd.OpenReport "rptPrintTicket", acViewNormal, , "[tick_id] = " & Me.tick_id.Value

End Sub

But when I run the code, it prompts me for "cust_id" which is another field on the form, and in the Tickets table. Any ideas why it is doing this?
 

Users who are viewing this thread

Back
Top Bottom