(Access 2007)
I'm designing a database to take test data.
There are two types of test which require data entered in two different orders, but stored in the same record.
To do this I have created two forms, lets call them form1 and form2.
When a record entry called MachineSpecific ation = 2 I want form2 to display else I want form1 to display.
Im currently using a hide/unhide routine (donated to me by Neopa) in the "On Current" Event to switch from form1 to form2 when [MachineSpecific ation]=2
As an example lets say record 3 is [MachineSpecific ation]= 2
As i click through the records 1,2, .. then 3 Form2 unhides and form1 hides, but its record displayed is record 2 not record 3.
I then click to record 3 the form2 shows the correct data, then I click to record 4. As expected form1 displays but is still on record 3 not 4.
So even though the Nav button is pressed form2 is getting the previous forms record index, not the next index. This happens in reverse too record 4 to 1.
I tried using "DoCmd.Open Form "form2", , , "[index]=" & Me![index] "
But this sets a filter to a single record when it passes the index. So it doesnt suit my purpose.
So how do you switch to a different form and back again when scrolling through records?
I'm designing a database to take test data.
There are two types of test which require data entered in two different orders, but stored in the same record.
To do this I have created two forms, lets call them form1 and form2.
When a record entry called MachineSpecific ation = 2 I want form2 to display else I want form1 to display.
Im currently using a hide/unhide routine (donated to me by Neopa) in the "On Current" Event to switch from form1 to form2 when [MachineSpecific ation]=2
As an example lets say record 3 is [MachineSpecific ation]= 2
As i click through the records 1,2, .. then 3 Form2 unhides and form1 hides, but its record displayed is record 2 not record 3.
I then click to record 3 the form2 shows the correct data, then I click to record 4. As expected form1 displays but is still on record 3 not 4.
So even though the Nav button is pressed form2 is getting the previous forms record index, not the next index. This happens in reverse too record 4 to 1.
I tried using "DoCmd.Open Form "form2", , , "[index]=" & Me![index] "
But this sets a filter to a single record when it passes the index. So it doesnt suit my purpose.
So how do you switch to a different form and back again when scrolling through records?
Comment