Hi, all! I'm a new user, looking to get some help on a form problem in MS Access 2007 I haven't been able to crack.
I've built a form that prompts users to enter new record data, then click "Update Database" to save the record to the table. Each entry creates a new record in the original table (all data goes to the same table).
I've used the button wizard to add a "previous record" and a "next record" button, which work in the sense that they allow the user to scroll forward and backward through all the records they've input in a single "session" (one session = whatever happens between the time the file is opened and the file is closed) However, when a user arrives at the first record they entered and clicks "previous record" again, the message "You can't go to the specified record" is displayed. I thought this might have something to do with the macro, so I went into the "GoToRecord " action in both the "previous record" and the "next record" macros and added the following arguments:
OBJ Type: Table
OBJ Name: Table1
Offset: 1
Now, when a user goes to the first record entered in the session and clicks "previous record," the error message "The object 'Table1' isn't open."
So I went back to the navigation pane, opened up Table 1, then went back to the form and tried to click "previous record" again. Back to the original "You can't go to the specified record" message again.
I tried closing the database after entering records, then opening it up again, and when I clicked the "previous record" button when the form opened with all blank fields in the control boxes, the error message "You can't go to the specified record" displayed.
I'm about at the end of what I know to do and try--if anyone has any suggestions/hints, I'd appreciate it! Thanks!
I've built a form that prompts users to enter new record data, then click "Update Database" to save the record to the table. Each entry creates a new record in the original table (all data goes to the same table).
I've used the button wizard to add a "previous record" and a "next record" button, which work in the sense that they allow the user to scroll forward and backward through all the records they've input in a single "session" (one session = whatever happens between the time the file is opened and the file is closed) However, when a user arrives at the first record they entered and clicks "previous record" again, the message "You can't go to the specified record" is displayed. I thought this might have something to do with the macro, so I went into the "GoToRecord " action in both the "previous record" and the "next record" macros and added the following arguments:
OBJ Type: Table
OBJ Name: Table1
Offset: 1
Now, when a user goes to the first record entered in the session and clicks "previous record," the error message "The object 'Table1' isn't open."
So I went back to the navigation pane, opened up Table 1, then went back to the form and tried to click "previous record" again. Back to the original "You can't go to the specified record" message again.
I tried closing the database after entering records, then opening it up again, and when I clicked the "previous record" button when the form opened with all blank fields in the control boxes, the error message "You can't go to the specified record" displayed.
I'm about at the end of what I know to do and try--if anyone has any suggestions/hints, I'd appreciate it! Thanks!
Comment