js22 Posted January 22, 2007 Posted January 22, 2007 Hello, I'm constructing a database for a chemistry lab that I work in. It is an inventory database and I'm writing a script that will perform a search function. In the database there are three fields i would like to search: "Common Name", "Formal Name", and "Alternate Names". Chemists are not too bright so we have 8 names for everything. All three fields are in the table "Supplies". What I would like is the ability to search all three fields at one. This is my current script that performs a search of the field "Common Name": Enter Find Mode[] Show Custom Dialog["Find An Inventory Item"; "Enter Item Name"; Supplies: Common Name] Go to Field [supplies::Common Name] Perform Find[] Sort Records[Restore; No dialog] Halt Script This works fine for searching the common name field. If anyone knows how to expand the find so that I can search all three fields and show the records I would be most grateful. Thanks js22
Ender Posted January 22, 2007 Posted January 22, 2007 How about: Enter Find Mode[] Show Custom Dialog["Find An Inventory Item"; "Enter Item Name"; Supplies: Common Name] If [ not isempty(Supplies:: Common Name) ] Set Variable [ $Name ; Supplies:: Common Name ] New Record/Request Set Field [ Supplies::Formal Name ; $Name ] New Record/Request Set Field [ Supplies::Alternate Names ; $Name ] End If Perform Find[] ...
js22 Posted January 23, 2007 Author Posted January 23, 2007 Thanks so much, that was just the trick. js22
Recommended Posts
This topic is 6516 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now