OPen Password form

amna77

Active Member
Joined
May 9, 2002
Messages
251
Hi, i have one form, on which I have combo boxes and date fields. like 7 of each.

Combo1 and text1
Combo2 and text2

Now what I want to do is, when ever user click on the text1 then I it opens up the small paswword form. but the thing is I want to get that combo1 value on the small pop up form. if user clik on text2 then combo2 value should be caputre in that small pop up form.
Please help me with that. I shall be thankful to you.

Thanks
Amna
 
sorry, its me again.
I did put that code in the Module.
but still same error, Function not defiend.


Private Sub OpenPwd()

Dim lngSuffix As Long
Dim strComboName As String
Dim strOpenArgs As String

strComboName = Screen.ActiveControl.Properties("Name")

strComboName = Left(strComboName, InStr(strComboName, "Date") - 1)

strComboName = "cbo" & Mid(strComboName, 4) & "Names"

strOpenArgs = Me.Controls(strComboName).Value
DoCmd.OpenForm FormName:="frmPWD", OpenArgs:=strOpenArgs
End Sub
 
Upvote 0

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Not in a regular module, but in the form's module. You should have the Button_Click (or double click) events in there also - I want to see the whole module.
 
Upvote 0
Thanks for help. my password is working now, the way I want it. actually I used to first codes, the one you gave me first time, I modify little bit in there, now its working. Thanks, its all becasue of you.

Thanks
Amna
 
Upvote 0

Forum statistics

Threads
1,221,531
Messages
6,160,357
Members
451,642
Latest member
mirofa

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top