Results 1 to 2 of 2
  1. #1
    MBorda is offline Novice
    Windows Vista Access 2007
    Join Date
    Nov 2011
    Posts
    2

    Criteria for last record

    I am building a multi-step data entry process. In the first few steps, the data entry person is entering in new records for multiple tables. In the latter steps, they will be adding to these records. The problem I am encountering is as follows:



    I have a command button that opens a new form. I wrote a basic code to goto to the last record. However, the form is not going to the most recently entered record. Access is using the foreign key in the table to determine the last record. However, I want to use the primary key to determine the last record since each new record will get a primary key with a progressively higher number.

    How do I force access to use a specific column of data to determine the goto last record?

    Thank you
    Matt

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Hi
    Can you show us your code and can you tell us where you are using it?
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 07-13-2011, 11:00 AM
  2. Replies: 1
    Last Post: 12-22-2010, 01:28 AM
  3. if record exists...conditional query criteria
    By mbryanr in forum Queries
    Replies: 2
    Last Post: 02-12-2010, 11:50 AM
  4. Replies: 1
    Last Post: 02-03-2010, 08:17 AM
  5. Find existing record with multiple criteria
    By TheWedgie in forum Forms
    Replies: 1
    Last Post: 03-25-2009, 10:24 AM

Tags for this Thread

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