G
Guest
I have a text box and a GET button. This is for a user to find a record
The records have an autonumber key (long)
HOWEVER, I also have an alternate reference number table with pointers to the autonumber keys, think of it as an Alias table. These aliases can be numeric or alphanumeric
I want the logic to first search for a regular key and then if it not found to scan the alternate keys
In setting up my first SQL to look for the regular autonumber key, I can't get it to work if I enter an alpha string
Where ID = number fail
If I change it t
Where ID = "'" & number & "'
it also fail
How do I get around this???
The records have an autonumber key (long)
HOWEVER, I also have an alternate reference number table with pointers to the autonumber keys, think of it as an Alias table. These aliases can be numeric or alphanumeric
I want the logic to first search for a regular key and then if it not found to scan the alternate keys
In setting up my first SQL to look for the regular autonumber key, I can't get it to work if I enter an alpha string
Where ID = number fail
If I change it t
Where ID = "'" & number & "'
it also fail
How do I get around this???