DaronSpicher
New Member
- Joined
- Jan 20, 2003
- Messages
- 2
Hi,
I'm wanting to search for a record based on the string BarCodeInput. If I find a record, I want to do one thing. If not found, I want to pop that table open so i can enter one using
DoCmd.OpenTable "MainDataBase"
I am trying to do this by using:
DoCmd.FindRecord(BarCodeInput, , True, , True)
How do I key off of that and go one way or the other? Does it return a boolean as found somehow? Does it return a record number that I can check against and if it is null or zero I would know?
Any thoughts?
Thanks! -Daron
I'm wanting to search for a record based on the string BarCodeInput. If I find a record, I want to do one thing. If not found, I want to pop that table open so i can enter one using
DoCmd.OpenTable "MainDataBase"
I am trying to do this by using:
DoCmd.FindRecord(BarCodeInput, , True, , True)
How do I key off of that and go one way or the other? Does it return a boolean as found somehow? Does it return a record number that I can check against and if it is null or zero I would know?
Any thoughts?
Thanks! -Daron