Hi all,
I have this:
but when I run it a enter parameter box appears asking for a dept. I dont want the box to appear because the value is already in text2.
Any ideas?
Thanks
Martin
I have this:
Code:
Text2.SetFocus
Dim txtdept As String
Dim txtdept2 As String
txtdept = Text2.Text
txtdept2 = "dept=" + txtdept
DoCmd.OpenReport "Copy of inventory transactions - Choose Dept", acViewPreview, , txtdept2
but when I run it a enter parameter box appears asking for a dept. I dont want the box to appear because the value is already in text2.
Any ideas?
Thanks
Martin