Christine Pearc
Christine
- Local time
- Today, 06:09
- Joined
- May 13, 2004
- Messages
- 111
I would like to create a button on FormA which will open FormB. Easy enough. However, I want the data source for the (single) field on FormB to vary depending on the variable I set in FormA. Can someone tell me how to to do this? Here's the code in FormA that I have thus far:
Private Sub cmdZoom_Click()
Dim mZoomField as string
mZoomField = me.Description
DoCmd.OpenForm "frm Zoom", , , stLinkCriteria = "[CARNum]=" & Me![CARNum]
End Sub
Many thanks!
Christine
Private Sub cmdZoom_Click()
Dim mZoomField as string
mZoomField = me.Description
DoCmd.OpenForm "frm Zoom", , , stLinkCriteria = "[CARNum]=" & Me![CARNum]
End Sub
Many thanks!
Christine