Hello All,
I have the following code attached to a button
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 "
And it wants me to enter in a ProductID parameter
And like this
And I get an runtime 3075 error. This seems like this should be simple but it driving me crazy.
Any Ideas?
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?