I've set up a database result in frontpage, dieted it.. Can't get it work the way I would like.. If I enter the number and password- works. If I enter the Lastname and password - doesn't work (but it should. Any ideas..
fp_sQry="SELECT * FROM BRYSON3A WHERE ((BOOKINGNUMBER = ::BOOKINGNUMBER:: OR LASTNAME = '::LASTNAME::') AND (PASSWORD = '::PASSWORD::'))"
I tried that new query; checked spaces.. Same thing.. Error when I use Lastname and password: Database Results Error Description: Extra ) in query expression '((BOOKINGNUMBER = ) OR (LASTNAME = 'tucker')) AND (PASSWORD = 'tucker1')'. Number: -2147217900 (0x80040E14) Source: Microsoft JET Database Engine
One or more form fields were empty. You should provide default values for all form fields that are used in the query. One or more form fields were empty. You should provide default values for all form fields that are used in the query.
The query isn't working since you don't have a booking number. Not sure how the diet stuff works, but are you able to create your query depending on logic? Or can you default booking number to something, since it won't matter because it is an OR?