On Click of a Subform

B

Bob

I have a subform on another Form, The subform has a Textbox/Control Source
[ClientID] what would I need in the Textbox/Control Source [Name] On Click
event to go to frmClientInfo,that has the same ClientID
(AutoNumber)................Thanks for any Help.....Bob
 
G

Guest

Hi Bob

Private Sub ClientID_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmClientInfo"
stLinkCriteria = "[CDClientID]=" & Me![CDClientID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
 
B

Bob V

Thanks Wayne , absolutely fantastic :) , I did drop the CD out of CDClientID
, is that OK?.....Regards Bob

Wayne-I-M said:
Hi Bob

Private Sub ClientID_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmClientInfo"
stLinkCriteria = "[CDClientID]=" & Me![CDClientID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub


--
Wayne
Manchester, England.



Bob said:
I have a subform on another Form, The subform has a Textbox/Control
Source
[ClientID] what would I need in the Textbox/Control Source [Name] On
Click
event to go to frmClientInfo,that has the same ClientID
(AutoNumber)................Thanks for any Help.....Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top