Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SendKeys compiler error.

Status
Not open for further replies.

InyoTom

Technical User
Feb 4, 2000
33
US
Attempting to run a module with the following statement gets error &quot;Compiler error: Wrong number of arguments or invalid property assignment.&quot;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;SendKeys &quot;%FX&quot;, False<br><br>This statement is from code-conversion of a macro with SendKeys action, so the syntax should be OK.<br><br>Anybody have any ideas?
 
I assume this line of code is within a procedure, not in General Declarations. If so it should work fine as it is. Make sure it is a comma and not a period before the False arg and make sure there is a space too.
 
Yes, in a procedure. Simple function, simple syntax. My keyed-in code failed, so I made the working macro and let Access create new code via macro conversion, and the code Access created fails. This is Access 2000. Perhaps I should try Access 97. <p>Tom Budlong<br><a href=mailto:budlong@who.net>budlong@who.net</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top