Hi,
I have a choice list with my firstname en surname in it eg.
listbox values= "Frank Claes", "John Smith"
I have also a table in a database with the following fields
Members:
- MemberId
- MemberFirstName
- MemberSurName
Now I want to search the MemberId, I thought something like this:
sqlstmt="SELECT * FROM Members WHERE MemberFirstName||' '||MemberSurName='"+listbox.getSelectedItem()+"'";
Why doesn't this work? can someone help me?
I have a choice list with my firstname en surname in it eg.
listbox values= "Frank Claes", "John Smith"
I have also a table in a database with the following fields
Members:
- MemberId
- MemberFirstName
- MemberSurName
Now I want to search the MemberId, I thought something like this:
sqlstmt="SELECT * FROM Members WHERE MemberFirstName||' '||MemberSurName='"+listbox.getSelectedItem()+"'";
Why doesn't this work? can someone help me?