OLE Object based on If statement
I have two ole objects in a table specified as my "look up" table.
I want one ole object to show up for one value in a field, and a different one for a different value. I have the below code in there...but I know its wrong because...duh! it's not working! :D
In the look up table, the ole objects are in records 1 & 2 of the "logo" field. If the value is "Stant", I want the ole object in record #1 to show up. If the value is "STC", I want the ole object in record #2 to show up.
If Company = "Stant" Then CompanyLogo = [lookuptable]![Logo]!record = 1
Any help would be much appreciated!
Regards,
Laura
The only thing standing between you and your goal is doubt. Quit doubting yourself and you'll be able to accomplish anything!
__________________
Regards,
Laura
The only thing standing between you and your goal is doubt. Quit doubting yourself and you'll be able to accomplish anything!
|