Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    It looks like you might have a scope problem.
    You have a few variables declared twice.

    Global vairables:
    ----------------
    Dim Avail As Recordset


    Dim Assg As Recordset
    Dim Idx2 As Integer


    and in the private sub you also have local declarations:
    ------------------------------------
    Dim Avail As DAO.Recordset
    Dim Assg As DAO.Recordset
    Dim Idx2 As Integer


    I am kinda curious as to why you have global variables and why you use a function to open a record set.
    Seems to me it would be easier to just use the sub.

  2. #17
    shabyr is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2012
    Posts
    14
    Thanks Steve, This is not my db, I inherited it. It was orginally designed in 2000. I am studying VBA and had to figure alot of the problems on my own. I have upgraded a copy the mdb to accdb, and trying to get all the bugs worked out before actually doing it to the live databases. There are 20 of them, (which includes BE and backup databases). I am at the point it might be wise to pay a developer, however I still will be the one maintaining, so I want to get this down.
    There are a lot of statements that I don't understand the programmers logic, all I know is that our production team uses them 24/7, and they don't want to go without. I would love to learn how to make is more efficient, and stable.
    -Shannon

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 13
    Last Post: 06-12-2012, 09:52 PM
  2. Replies: 0
    Last Post: 08-10-2011, 11:59 AM
  3. Object variable or With block variable not set
    By walter189 in forum Programming
    Replies: 1
    Last Post: 07-28-2011, 08:51 AM
  4. Replies: 4
    Last Post: 08-05-2010, 01:26 PM
  5. Object variable...Jesus!
    By Baba78 in forum Access
    Replies: 8
    Last Post: 06-19-2009, 03:56 PM

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