Page 3 of 3 FirstFirst 123
Results 31 to 38 of 38
  1. #31
    bdhFS is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    May 2010
    Posts
    32
    I think from now on in the data entry process I am going to try to assign a sequence number as the data is entered...that still does not solve this issue.

  2. #32
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,959
    So in the VBA editor under 'Modules' you created a code module and placed this procedure in it?

    Sorry, I forgot al wrote the procedure with an argument. Could instead hard code the table name:

    Public Sub AssignRowNum()

    ...

    Set rst = CurrentDb.OpenRecordset("SELECT * FROM [tablename] WHERE Num Is Null ORDER BY ID, inkmark")

    ...

    End Sub

    al gave a suggestion for entering this value when record created in post 10.
    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.

  3. #33
    alcapps is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    292
    can you put the table of data in a clean database and upload it. I will put in the code and show you how to call it in a form or a module.

  4. #34
    alcapps is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    292
    codeTest.zipok..here is a form in a database calling the code. if you still have the dao issue let me know

  5. #35
    bdhFS is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    May 2010
    Posts
    32

    Database Example

    SequenceNumberForInkMarks.zip

    Not sure if I did this right

  6. #36
    alcapps is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    292
    Were you able to run the database I uploaded?

  7. #37
    alcapps is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    292
    SequenceNumberForInkMarks.zip

    alright.. I think this should do it for you. I've given you examples of what you are trying to do. play around and this should answer your questions..

  8. #38
    bdhFS is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    May 2010
    Posts
    32
    AWESOME!!! Thanks so much alcapps, I really appreciate your help.

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

Similar Threads

  1. Replies: 5
    Last Post: 12-04-2012, 02:46 AM
  2. Use VBA to edit record or create new record in a query
    By ryantam626 in forum Programming
    Replies: 11
    Last Post: 08-09-2012, 02:37 AM
  3. Replies: 2
    Last Post: 06-06-2012, 09:35 AM
  4. Replies: 1
    Last Post: 03-08-2012, 09:17 AM
  5. Report Restarts Itself And Never Completes
    By VariableZ in forum Reports
    Replies: 10
    Last Post: 03-01-2012, 10:47 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