Argument not optional

D

Dudley

I am trying to create a command button to run public sub
IncorporationQuery(Envelope as String). For code

Dim strGetProc As String
strGetProc = "IncorporationQuery"
Application.Run strGetProc

I get error 'Argument not optional'. I cannot find how to write the argument.

Thanks for any help.
Dudley
 
J

Jeff Boyce

Have you tried checking Access HELP for the proper syntax for your command?

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
D

Dudley

Thanks very much for your help. My error was putting the argument as
"Envelope as String" instead of "Envelope".

Dudley
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top