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

Error Loading Form

manoj9849967222
P: 48
Hi All

I have a form with some textboxes.Now i want that when ever i double click one of the Textbox it should load another form.

I have witten some codes but its not working.

Please help.
Aug 5 '07 #1
Share this Question
Share on Google+
3 Replies


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

I have a form with some textboxes.Now i want that when ever i double click one of the Textbox it should load another form.

I have witten some codes but its not working.

Please help.
To Open Form1 in Edit Mode, when you Double Click in a Text Box named txtDoubleClick, place the following code in the DblClick() Event of txtDoubleClick as illustrated below:
Expand|Select|Wrap|Line Numbers
  1. Private Sub txtDoubleClick_DblClick(Cancel As Integer)
  2.   DoCmd.OpenForm "Form1", acNormal, , , acFormEdit, acWindowNormal
  3. End Sub
Aug 5 '07 #2

manoj9849967222
P: 48
To Open Form1 in Edit Mode, when you Double Click in a Text Box named txtDoubleClick, place the following code in the DblClick() Event of txtDoubleClick as illustrated below:
Expand|Select|Wrap|Line Numbers
  1. Private Sub txtDoubleClick_DblClick(Cancel As Integer)
  2.   DoCmd.OpenForm "Form1", acNormal, , , acFormEdit, acWindowNormal
  3. End Sub

Thanks you very much ADezii.

I would to Thank the whole team. Its really a very good Website.
Aug 5 '07 #3

ADezii
Expert 5K+
P: 8,669
Thanks you very much ADezii.

I would to Thank the whole team. Its really a very good Website.
You are quite welcome, and we are very proud of TheScripts and its Team Members!
Aug 5 '07 #4

Post your reply

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