SysCmd code gives runtime error 7952

  • Thread starter Thread starter KB
  • Start date Start date
K

KB

Can someone tell me why this line gives me a runtime error 7952 You
made an illegal function call.
(can't seem to find a good list of runtime codes anywhere!).


myvalue = SysCmd(acSysCmdGetObjectState, acForm, Parties_frm)

The line is near verbatum from the help files... what gives...
 
Is "Parties_frm" the name or the Form or a Variable holding the name of the
Form?

If it is the name of the Form, try:

myvalue = SysCmd(acSysCmdGetObjectState, acForm, "Parties_frm")
 
can't seem to find a good list of runtime codes anywhere!

Have you checked out Terry Wickenden's site?
http://www.tkwickenden.clara.net/


Tom
____________________________________________


Is "Parties_frm" the name or the Form or a Variable holding the name of the
Form?

If it is the name of the Form, try:

myvalue = SysCmd(acSysCmdGetObjectState, acForm, "Parties_frm")


--
HTH
Van T. Dinh
MVP (Access)

____________________________________________


Can someone tell me why this line gives me a runtime error 7952 You
made an illegal function call.
(can't seem to find a good list of runtime codes anywhere!).


myvalue = SysCmd(acSysCmdGetObjectState, acForm, Parties_frm)

The line is near verbatum from the help files... what gives...
 
Quotes did it. Arg, I surprised I didn't think of that, but it was
the last thing on my mind. Gotta love VBA's weird querks! Been a
while since I've coded, so I spent too much time taking the help files
at literal.

Thanks!
 

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

Back
Top