Results 1 to 2 of 2

Thread: Exit Query

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Posts
    424

    Exit Query

    Microsoft Access

    How can I embedd a function into a query that will cause the query to shut itself down upon error? I've tried several attempts but nothing seems to work.. I usually get the error that I can't close the query because it's calculating or repainting but I know that in long queries I can abort with control-break. When I use sendkeys for that combination in a function it just skips the record and goes on. Any Ideas?

  2. #2
    Hyperactive Member
    Join Date
    Aug 2002
    Posts
    416
    use DoCmd.RunSQL and have error trapping on it..... if it errors, exit .. or do whatever...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width