By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,124 Members | 2,054 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,124 IT Pros & Developers. It's quick & easy.

Unable to populate data when the check box is clicked.

manoj9849967222
P: 48
Hi All

I have a Text box1 when it is dobelclicked a form is loaded. The form contains ckecks boxs. now i want that when i click the check box the data against check box should automatically populate to the Textbox1.

I have tried & tried but i could not make it out.

Please help.

Regards
Manoj
Aug 6 '07 #1
Share this Question
Share on Google+
2 Replies


ADezii
Expert 5K+
P: 8,669
Hi All

I have a Text box1 when it is dobelclicked a form is loaded. The form contains ckecks boxs. now i want that when i click the check box the data against check box should automatically populate to the Textbox1.

I have tried & tried but i could not make it out.

Please help.

Regards
Manoj
I'm having a little touble understanding your request, but I'll give it a shot:
Expand|Select|Wrap|Line Numbers
  1. Private Sub chkCheckBox_AfterUpdate()
  2. 'If the Check Box on the called Form is checked, write a value
  3. 'back to Text Box1 on the calling Form, let's say Form 1
  4. If Me![chkCheckBox] Then
  5.   Forms![Form 1]![Text Box1] = "some value"
  6. End If
  7. End Sub
Aug 6 '07 #2

manoj9849967222
P: 48
Hi

Now it is showing a Run time error 424 and saying object required.

I am not able to trace where i am exactly going wrong.

Please suggest.

Regards
Manoj
Aug 6 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.