Hi,
You may be right Killer42, but I couldn't find other solution it is like this:
In the first form I have this code:
Search_Form.Sho w <=== first line
Personal(1) = passpara
Set db = OpenDatabase("d :\medical\medic al assist2000.mdb" )
Set rs = db.OpenRecordse t("select * from PersonalData where emp_name = " & "'" & passpara & "'")...
User Profile
Collapse
-
Hi,
Thank you all for your help, I'm sorry I didn't provide you with details. I could solve the problem by typing the following line
Search_Form.Sho w vbModal <==== in the first form
which opens the search form, then I could pass the string of the pass_para to the first form, otherwise the error comes.
Thanks allLeave a comment:
-
type mismatch error
Hi, I'm using VB6 and when trying to pass the selection of the listbox in one form to a textbox in another form I get the mismatch error code 13, though the textbox is a string and the passing parameter is a string as well. I'm using this code to pass the parameter:
[CODE=vb]Private Sub Select_cmd_Clic k()
passpara = emp_list
Forms!PerData!P ersonal(1) = passpara
Unload Me
End Sub[/CODE]
No activity results to display
Show More
Leave a comment: