Print Preview Trouble

gmatriix

Registered User.
Local time
Today, 03:03
Joined
Mar 19, 2007
Messages
365
Hello All,

I have the following code attached to a button
Code:
Private Sub DraftPreview_Click()
    Me.Refresh
    
    DoCmd.OpenReport "draft quote", acViewPreview, , "ProductID = forms!product!productid"

Not much to it however, I changed it to be linked to a SQL table instead. The table it is connected to now show "productid" like this "product id" I have tried it both ways.

Like this "
Code:
Private Sub DraftPreview_Click()
    Me.Refresh
    
    DoCmd.OpenReport "draft quote", acViewPreview, , "Product ID = forms!product!product id"

And it wants me to enter in a ProductID parameter

And like this
Code:
Private Sub DraftPreview_Click()
    Me.Refresh
    
    DoCmd.OpenReport "draft quote", acViewPreview, , "ProductID = forms!product!productid"

And I get an runtime 3075 error. This seems like this should be simple but it driving me crazy.

Any Ideas?
 

Users who are viewing this thread

Back
Top Bottom