Sub or Function not defined

G

Guest

I am working on a db and I have a form and on this form I have a button that
would perform a Run a SQL script in this SQL script i have a “where†clause

When I click on the button it takes me back to the code and the “where†is
highlighted and I am getting a compile error “Sub or Function is not Definedâ€

How do I handle this error?


Thanks
 
G

Guest

post the SQL you are trying to run and the code where you are trying to run
it. You question is too vague. It is like "Doctor, I don't fell so good,
what's wrong with me?"
 
G

Guest

Here is the code
DoCmd.RunSQL "SELECT Current_Month_Data.[obligor & obligation],
Current_Month_Data.src_sys_id, Current_Month_Data.ucr_rtg,
Current_Month_Data.facility_limit, Current_Month_Data.charge_off,
Current_Month_Data.facility_binding_limit INTO [Current Month UCR] FROM
Current_Month_Data"
WHERE (((Current_Month_Data.ucr_rtg) Is Null))
 

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