Page 3 of 3 FirstFirst 123
Results 31 to 34 of 34
  1. #31
    ngahm is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Feb 2012
    Posts
    17

    Thank you, SSanfu. This works very well and seems to do everything that I that I want it to do.

  2. #32
    ngahm is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Feb 2012
    Posts
    17
    Hello again SSanfu;
    I just duiscovered that if I click on "No" when asked if I want to add new record, I get the following error: "Run-time error '91' Object variable or with block variable net set". When I click on debug, the line "rs.Close" is highlighted. I'll work on trying to find the problem, but thought that you might have run into it before. BTW, clicking on "Yes" to add the new record works flawlessly. Thanks again.

  3. #33
    ngahm is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Feb 2012
    Posts
    17
    Hello Ssanfu:
    I was able to fix the problem and all is working well now. It seems that the last three lines of code before the End Sub (i.e. "rs.Close", "Set rs = Nothing" and "Set db = Nothing") should be before the last End If command. Placing them there caused the routine to run flawlessly. Thanks again.

  4. #34
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Quote Originally Posted by ngahm View Post
    Hello Ssanfu:
    I was able to fix the problem and all is working well now. It seems that the last three lines of code before the End Sub (i.e. "rs.Close", "Set rs = Nothing" and "Set db = Nothing") should be before the last End If command. Placing them there caused the routine to run flawlessly. Thanks again.
    You are correct. I looked at "The ACCESS WEB" page and the last three lines are in the wrong place there. Good catch.
    Glad you were able to fix it.

Page 3 of 3 FirstFirst 123
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 17
    Last Post: 06-04-2012, 05:11 PM
  2. Replies: 13
    Last Post: 01-11-2012, 09:44 PM
  3. Replies: 3
    Last Post: 03-07-2011, 08:37 PM
  4. Replies: 1
    Last Post: 03-26-2010, 07:20 PM
  5. Generate a List of Items from "Many" Relationship
    By Hammer Mark in forum Reports
    Replies: 0
    Last Post: 04-20-2009, 07:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums