Argument not optional

  • Thread starter Thread starter Dudley
  • Start date Start date
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
 
Have you tried checking Access HELP for the proper syntax for your command?

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
Thanks very much for your help. My error was putting the argument as
"Envelope as String" instead of "Envelope".

Dudley
 
Back
Top