Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    WithoutPause is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Nov 2013
    Posts
    62

    Database structure is out of my hands. Trust me, there was a face palm moment when I found of how it was set up. A user can log on and then click on a button to add a new record which gives between 1-3 types of records to add. There is another button to search for an existing record and again, the user gets to pick which type of record they want to search for. Why the search forms ended up using two forms was part of another thread I have on here. I have tried testing the database on two different PCs, and it works on neither although it should have been working on the main one at one point. I don't know what got changed that prevents me from adding or editing anything.

    EDIT: Since I run it off an external HD, I tried copying it onto the PC, and it still merely adds a blank record whenever I try to enter data.

  2. #17
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Hi -

    Your Findfirst is wrong. Instead of rs.FindFirst "[C01] = C01" it should be rs.FindFirst "[C01] = 'C01' ". Because C01 is a string value, it has to be in quotes.

    John

  3. #18
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    I am thinking it is a control name
    https://www.accessforums.net/access/...tml#post210047

  4. #19
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Reference to variables should not be within quote marks. Reference to control as a criteria parameter is a variable.

    rs.FindFirst "[CO1]='" & Me.C01 & "'"
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #20
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Well, I am still learning...

  6. #21
    WithoutPause is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Nov 2013
    Posts
    62
    Quote Originally Posted by June7 View Post
    I ran Compact & Repair on your db and it went from 4992 KB to 780 KB.
    I go into Access and then open the database in question. I do a Compact and Repair and I get nowhere near the drop in file size that you are getting. I'm guessing the issue is the database got jacked, and I'm not repairing it like I should be.

  7. #22
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    That's odd. I downloaded your db again and did the C&R again just to make sure, same results.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  8. #23
    WithoutPause is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Nov 2013
    Posts
    62
    I rebuilt the tables and the application works. I still don't get any real drop is file size when using C&R, and I tried on two different versions of Access 2013. I am at the point where I am converting it over to a accbd file, and I got an error message so I'm going to go complie it and see once that runs clean if the C&R performs differently.

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

Similar Threads

  1. Updating current Access Dbase
    By berger01 in forum Database Design
    Replies: 4
    Last Post: 06-28-2013, 01:35 PM
  2. Replies: 16
    Last Post: 02-06-2013, 03:06 PM
  3. Replies: 6
    Last Post: 12-11-2012, 09:40 PM
  4. Replies: 3
    Last Post: 09-19-2012, 07:34 AM
  5. Replies: 5
    Last Post: 08-24-2012, 10:32 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