I now have a new and simple (ish) problem that needs solving, however, i think it involves a fairly complex solution.
I have a form as shown below.

That should describe most of the basics of the form.
Here is the problem:
You can use the navigation buttons to successfully go through all customers and view their orders in the subform. You can also successfully type a customer number in the 'Customer No.:' textbox and click find to view that customers orders.
The 'Customer No.:' textbos is unbounded and simply read when the find button is pressed. The textbox above that (which will eventually be made invisible) is bound to the column 'Customer No.' in the 'Customer' Table through the form.
The reason for the textbox with no label is to only move to customer numbers that exist, for example 2,3,7,10,27, etc rather than 1,2,3,4,5, etc.
The customer No.: Textbox is the one that does all the searching and is passed values from the textbox above when you navigate through the customer table.
The problem is when I search for a customer number i get the correct results, but i cannot figure out how to more the current record of the customer table to the searched customer number.
(So i'd start with the 2 customer number textboxes with both 2's in them, i'dthen search for customer no. 7, and get the results but the un-labeled textbox also needs to change to 7.
>>I apologise now if this is extremely hard to understand, its extremely hard to show what i mean unless i videoed the problem so you can see what happens.
I have tried the following code in the 'OnClick' event of the 'Find' button:
Im trying to find the record number of the current Customer No. in the Customer table and then GoTo that record, but i cannot get the record number of the customer number in the customer table.
Any ideas? (Assuming you understand the problem, lol)
I have a form as shown below.

That should describe most of the basics of the form.
Here is the problem:
You can use the navigation buttons to successfully go through all customers and view their orders in the subform. You can also successfully type a customer number in the 'Customer No.:' textbox and click find to view that customers orders.
The 'Customer No.:' textbos is unbounded and simply read when the find button is pressed. The textbox above that (which will eventually be made invisible) is bound to the column 'Customer No.' in the 'Customer' Table through the form.
The reason for the textbox with no label is to only move to customer numbers that exist, for example 2,3,7,10,27, etc rather than 1,2,3,4,5, etc.
The customer No.: Textbox is the one that does all the searching and is passed values from the textbox above when you navigate through the customer table.
The problem is when I search for a customer number i get the correct results, but i cannot figure out how to more the current record of the customer table to the searched customer number.
(So i'd start with the 2 customer number textboxes with both 2's in them, i'dthen search for customer no. 7, and get the results but the un-labeled textbox also needs to change to 7.
>>I apologise now if this is extremely hard to understand, its extremely hard to show what i mean unless i videoed the problem so you can see what happens.
I have tried the following code in the 'OnClick' event of the 'Find' button:
Code:
Private Sub FindAccount_Click()
Me.ViewAccount_Subform.Requery
CustNo = Me.ViewCustomerNumber
DoCmd.FindRecord CustNo, acEntire, True, acSearchAll, , , True
DoCmd.GoToRecord acDataForm, "ViewAccount", acGoTo, CurrentRow
End Sub
Im trying to find the record number of the current Customer No. in the Customer table and then GoTo that record, but i cannot get the record number of the customer number in the customer table.
Any ideas? (Assuming you understand the problem, lol)