I'm doing a telephone directory. You put in bits of surname and/or christian name. If there are zero records I want a message 'No matching records'. If it is one record I want to go straight to the details screen. If it is two or more records then I put up a subform to allow the user to select the person they want.
You'd think there's no reason why I can't do this with macros, but I have looked everywhere and can't find how you access the return codes from an SQL query.
Worse still, in VBA the .recordcount seems to give you numbers based on your star sign as much as the actual number of records.
Am I missing something? mike.stephens@bnpparibas.com
You'd think there's no reason why I can't do this with macros, but I have looked everywhere and can't find how you access the return codes from an SQL query.
Worse still, in VBA the .recordcount seems to give you numbers based on your star sign as much as the actual number of records.
Am I missing something? mike.stephens@bnpparibas.com