Microsoft
Software
Hardware
Network
Question : Access record navigation is not working in my custom application
I have an access DB that has been split into a back end (with tables) and a front end (user interface forms). I believe i initially tested it and everything worked for a while, but i cant say that with 100% certainty since i may have missed testing the specific item that isn't working at the moment. There are basically 2 things that aren't working and i think they are related because both deal with record navigation.
First, the front end user interface has navigation buttons that were added with the "add button" wizard in access. I thought that, at the time i completed this, i tested all of these buttons to make sure that they worked. I basically have a mulit-tabbed input form that is tied to about 4 or 5 database tables. You should be able to navigate through the records with the navigation buttons and see each record populate in the input form. When i hit the forward nav button, the form is populated with "new" in the id field (which seems ok). when i hit the back button, it says "Record not available". I verified by looking at the table that there are many records in the table that i should be able to navigate through.
As a second, and i think related problem, there is a combo box where you can pick a particular salesman from the dropdown. In a listbox below, all sales opportunities from that particular salesman are displayed. When you click on one of the opportunities shown in the listbox, the form should populate with that particular opportunity. Again, i THINK that this must have worked when i tested it, but it doesnt now. the listbox populates fine with all the opportunities of the salesman, however, when you click on one of the opportunities, the form does not populate.
As info,
Here is my rowsource from the combobox. It has two columns, first one is bound with width set to zero:
SELECT [Employees Extended].ID, [Employees Extended].[Employee Name]
FROM [Employees Extended]
ORDER BY [Employees Extended].[Employee Name];
In the combo box "on change" event i have this:
Private Sub filterNAME_Change()
'for filtering Opp Id's by salesman
Me.salesmanfilterlist.Requ
ery
End Sub
salemanfilerlist is the unbound listbox where the results are displayed and where you should be able to click on the one you want. For this listbox, here is the rowsource:
SELECT keystoneopportunities.[ID]
, keystoneopportunities.[Opp
ortunity_T
itle], keystoneopportunities.[Sal
esman]
FROM keystoneopportunities
WHERE (((keystoneopportunities.s
alesman)=[
forms]![Op
portunityI
nput].[fil
terNAME]))
;
and here is the "on click" event for the listbox"
Private Sub salesmanfilterlist_Click()
'for filtering Opp Id's by salesman
Me.Recordset.FindFirst "ID=" & Me.salesmanfilterlist
End Sub
for the custom navigation buttons, i simply used the button wizard, selected record navigation buttons. It places a macro for each button.
Answer : Access record navigation is not working in my custom application
i solved this by eliminating the relationship to the "attachments" table, and then adding attachment fields into the main database table "keystoneopportunities". Not sure what the problem was with the relationship, but this works correctly now.
Random Solutions
How to create links in access tables
Adding user-input date range to query in MS Access
How do I fix App log Event id 1202 warning. 0x534 error (Windows 2000 Server)?
Access 2007 Customized Ribbon button disappears in Runtime
TC5730 Thin Client WES 2009 Terminal Services 2008 Single Sign On issue (0x507?)
routing and Remote access error
internet browser bring up a white page.. no error..
TextBox and Validation Rule
Timer doesn't seem to be
Omitting data based on record type