Make sure the "Wizard" button is depressed on the Toolbar.<br>
Create a New button on your form<br>
A Wizard box will pop up.<br>
In the "Categories" List pick "Form Operations"<br>
In the "Actions" List pick "Open Form"<br>
Click "Next" button (at bottom)<br>
Pick the form you want to open.<br>
Click "Next" button <br>
Click the "Open the form and find specific data" radio button.<br>
Click "Next" button <br>
Now then this next form allows you to choose which item on your current form will tell the next form to open which record to position itself on.<br>
So find the items in both lists and then click that <-> button in the middle it will put your choices in "Matching fields".<br>
Click "Next" button <br>
Choose text or picture<br>
Click "Next" button <br>
Give your button a name.<br>
Click "Finish" button <br>
Now if you want to modify the code <br>
Right click on your new button and then click "Build Event"<br>
This will take you to the VBA code window.<br>
<br>
You can see what Access is doing.<br>
And modify it if necessary<br>
you can also do unlimited other things here such as passing values to the next form.<br>
<br>
------------------------------------------<br>
Or here is another method<br>
------------------------------------------<br>
<br>
Dim formname As String, Syncriteria As String<br>
Dim f As Form, rs As Recordset<br>
<br>
' form name to be syncronized<br>
formname = "CreateNewRA"<br>
<br>
' check to see if the from is open<br>
If Not SysCmd(SYSCMD_GETOBJECTSTATE, A_FORM, formname) Then<br>
DoCmd.OpenForm formname<br>
End If<br>
<br>
'Define the from object and recordset object for the Products form<br>
Set f = forms(formname)<br>
Set rs = f.RecordsetClone<br>
<br>
' define the criteria used for the sync<br>
SyncCriteria = "[CUST_ID]=" & Me![CUST_ID]<br>
<br>
<br>
' find the corresponding record in the Products table<br>
rs.FindFirst SyncCriteria<br>
f.bookmark = rs.bookmark<br>
<br>
<br>
<br>
<br>
<br>
<p> DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br>