dbTalk Databases Forums  

Run-time Error '424'

comp.databases.ms-access comp.databases.ms-access


Discuss Run-time Error '424' in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
paul
 
Posts: n/a

Default Run-time Error '424' - 08-05-2003 , 04:08 PM






A button on a form has the ONClick Event [Event procedure]
with this code

Private Sub Toggle12_Click()
DocCmd.OpenQuery "TEST"
End Sub

Clicking the button & I get a
Run-time error '424'
Object Required
message

WinXP + Access 97
Googling Run-time error + Query didnt come up with anythin i thought was
helpful


Reply With Quote
  #2  
Old   
Deano
 
Posts: n/a

Default Re: Run-time Error '424' - 08-05-2003 , 04:14 PM






paul wrote:
Quote:
A button on a form has the ONClick Event [Event procedure]
with this code

Private Sub Toggle12_Click()
DocCmd.OpenQuery "TEST"
End Sub

Clicking the button & I get a
Run-time error '424'
Object Required
message

WinXP + Access 97
Googling Run-time error + Query didnt come up with anythin i thought
was helpful
Does TEST exist?




Reply With Quote
  #3  
Old   
paul
 
Posts: n/a

Default Re: Run-time Error '424' - 08-05-2003 , 04:20 PM



Deano wrote:
Quote:
paul wrote:

A button on a form has the ONClick Event [Event procedure]
with this code

Private Sub Toggle12_Click()
DocCmd.OpenQuery "TEST"
End Sub

Clicking the button & I get a
Run-time error '424'
Object Required
message

WinXP + Access 97
Googling Run-time error + Query didnt come up with anythin i thought
was helpful


Does TEST exist?


yes. Thought of that - I get the same error message regardless of the
query Im trying to open. Test is a very simple query (a couple of fields
from the DB with no fiddling around)



Reply With Quote
  #4  
Old   
Fletcher Arnold
 
Posts: n/a

Default Re: Run-time Error '424' - 08-05-2003 , 05:42 PM



"paul" <pdconetwofour_numbers_ (AT) yahoo (DOT) co.uk> wrote

Quote:
A button on a form has the ONClick Event [Event procedure]
with this code

Private Sub Toggle12_Click()
DocCmd.OpenQuery "TEST"
End Sub

Clicking the button & I get a
Run-time error '424'
Object Required
message

WinXP + Access 97
Googling Run-time error + Query didnt come up with anythin i thought was
helpful

1. Check spelling: "DocCmd" or "DoCmd"

2. Does the code for the database compile?


Fletcher




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.