LimitedAccess
New member
- Local time
- Today, 18:51
- Joined
- Jan 11, 2008
- Messages
- 9
Hi Chaps
First post so hope I'm not thrown to the floor and kicked for this question
Youknow how it is when you know just enough to get yourself through, but stumble on silly little things for hours
This relates to a database of company contracts past and present and my question relates to displaying a single contract on a form which allows the user to see all details of a selected contract (Contract title, Project Manager involved, value, client, etc etc) The Table of all this data (about 5000 records) has the field ContractNumber as the Primary Key and is an Autogen number field.
Now I have a simple 1st form that has a ComboList for the user to select the desired contract to view. When the user hits a button on this simple form it opens the main viewing form which displays the information beautifully. No problems there. This uses
DoCmd.OpenForm "Frmcontract", , , stLinkCriteria
where the variable stLinkCriteria is the selection from the ComboList on the 1st form.
My problem is that a user has asked if I can include a Next record/Previous record navigation to the main viewing form. Now obviously I can't simply make the navigation of the form visible as they can only navigate the filtered form which now only consists of the one contract. So what I'm wondering is how I can achive this request.
I still want to use the original 1st form with the ComboList setup as this also includes a ComboList for the Contract name (if you don't know the number) and this also works fine and people are used to using this 1st form.
I'm sure there must be a way to do this, but I'm stumped.
I first thought that I could use a couple of command buttons on the main viewing form that saved the current contract number to a variable, closed the main form then opened it again with a +1 or -1 value to the Contractnumber field, but that falls over if the table of contract numbers has any deleted records.
Help please
First post so hope I'm not thrown to the floor and kicked for this question
Youknow how it is when you know just enough to get yourself through, but stumble on silly little things for hours
This relates to a database of company contracts past and present and my question relates to displaying a single contract on a form which allows the user to see all details of a selected contract (Contract title, Project Manager involved, value, client, etc etc) The Table of all this data (about 5000 records) has the field ContractNumber as the Primary Key and is an Autogen number field.
Now I have a simple 1st form that has a ComboList for the user to select the desired contract to view. When the user hits a button on this simple form it opens the main viewing form which displays the information beautifully. No problems there. This uses
DoCmd.OpenForm "Frmcontract", , , stLinkCriteria
where the variable stLinkCriteria is the selection from the ComboList on the 1st form.
My problem is that a user has asked if I can include a Next record/Previous record navigation to the main viewing form. Now obviously I can't simply make the navigation of the form visible as they can only navigate the filtered form which now only consists of the one contract. So what I'm wondering is how I can achive this request.
I still want to use the original 1st form with the ComboList setup as this also includes a ComboList for the Contract name (if you don't know the number) and this also works fine and people are used to using this 1st form.
I'm sure there must be a way to do this, but I'm stumped.
I first thought that I could use a couple of command buttons on the main viewing form that saved the current contract number to a variable, closed the main form then opened it again with a +1 or -1 value to the Contractnumber field, but that falls over if the table of contract numbers has any deleted records.
Help please