sadiqsabia
Registered User.
- Local time
- Today, 09:17
- Joined
- Sep 3, 2008
- Messages
- 18
Any Help Please.
I have a table with many fields of which
Sno is a number
name is string
Sno is one and the name is many
I have instances where the name can be same only the sno can be different.
I have a form with list boxes
1st list box display- Sno
user select from list and the 2nd list shows the names.
i am trying to open a from based on the selection from 2nd list based on name and sno.
I have to compare both as names can be same spelling.
i can open by sno only or name only but i want both criteria to be met so i use this code but i get type mismatch error
DoCmd.OpenForm "tblpic", , , ("[sno]= " & Me!List1.Column(1)) And ("[name]=" & "'" & Me!List2.Column(0) & "'")
I think the problem is because of the two type of data one is string and the other is number but i need to do this.
how should i do it. Please help.
I have a table with many fields of which
Sno is a number
name is string
Sno is one and the name is many
I have instances where the name can be same only the sno can be different.
I have a form with list boxes
1st list box display- Sno
user select from list and the 2nd list shows the names.
i am trying to open a from based on the selection from 2nd list based on name and sno.
I have to compare both as names can be same spelling.
i can open by sno only or name only but i want both criteria to be met so i use this code but i get type mismatch error
DoCmd.OpenForm "tblpic", , , ("[sno]= " & Me!List1.Column(1)) And ("[name]=" & "'" & Me!List2.Column(0) & "'")
I think the problem is because of the two type of data one is string and the other is number but i need to do this.
how should i do it. Please help.