Jump to content

Brain = exploded why macro work sometime?

- - - - -

  • Please log in to reply
1 reply to this topic

#1
williamevanl

williamevanl

    Learning Programmer

  • Members
  • PipPipPip
  • 61 posts
So I have a query that basically pulls an entire linked table (quality score) table into a new created table. (table2) The query works fine as long as the the table (table2) doesnt exist and I have recently saved (or opened) the query in the the access database. This by itself doesnt make sense. If I run it right now without table2 existing I get this error message: You cannot record your changes because a value you entered violates the settings defined for this table or list.

But... if I right mouse click query1 and select design view and then save it, the query runs fine immediately following this. (note I didn't actually change anything)

If I start everything fresh remove table2 and save query1 in design view it all works. I have a macro that opens the mdb file deletes table2 and then attempts to: select * from qualityscore into table2 which results in the error listed. Please help!!

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Does it delete the records from the table, or delete the table itself?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users