PC Review


Reply
Thread Tools Rate Thread

On Click of a Subform

 
 
Bob
Guest
Posts: n/a
 
      25th May 2007


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


 
Reply With Quote
 
 
 
 
=?Utf-8?B?V2F5bmUtSS1N?=
Guest
Posts: n/a
 
      25th May 2007
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" wrote:

>
>
> 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
>
>
>

 
Reply With Quote
 
Bob V
Guest
Posts: n/a
 
      25th May 2007
Thanks Wayne , absolutely fantastic , I did drop the CD out of CDClientID
, is that OK?.....Regards Bob

"Wayne-I-M" <(E-Mail Removed)> wrote in message
news:48084C06-D1C5-4239-BA29-(E-Mail Removed)...
> 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" wrote:
>
>>
>>
>> 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
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
subform list/ subform detail double click Piperlynne Microsoft Access Forms 1 16th Jun 2009 04:11 PM
Double Click to Add Record from subform to order details subform =?Utf-8?B?QnJpYW4=?= Microsoft Access Database Table Design 2 19th Feb 2007 03:57 PM
click on subform, then click on button to open form to rcd in subform charlie via AccessMonster.com Microsoft Access Form Coding 0 8th Aug 2006 07:38 PM
click row on subform, then click button to open form to rcd in subform charlie via AccessMonster.com Microsoft Access Forms 1 8th Aug 2006 07:37 PM
click row on subform, then click button to open form to rcd in subform charlie via AccessMonster.com Microsoft Access Forms 0 8th Aug 2006 07:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:35 AM.