RunTime Error 3075

toleafs

Active Member
Joined
Jun 27, 2005
Messages
498
Hi
Any help with the following error will be appreciated. I am receiving Runtime error 3075, missing parameters in query expression. I am using the following code:

.InitialFileName = DLookup("ScheduleNumber", "tblMainRSS", "PackageID = " & OpenArgs) & "_" & DLookup("Division", "tblMainRSS", "PackageID = " & OpenArgs) & ".pdf"

PackageID is a text field.

Hope this makes sense. Thanks
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Any text criteria would need to be single-quoted in your dlookup function:
.InitialFileName = DLookup("ScheduleNumber", "tblMainRSS", "PackageID = " & chr(39) & OpenArgs & chr(39)) & "_" & DLookup("Division", "tblMainRSS", "PackageID = " & chr(39) & OpenArgs & chr(39)) & ".pdf"
 
Upvote 0

Forum statistics

Threads
1,221,771
Messages
6,161,847
Members
451,723
Latest member
Rachetsely

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top