Field Dependent on Combo Box

scratch that - i got it, i was using column 2 instead of 0 (didnt knwo you could use 0, since i was wondering why it started with 1)

fantastic Bob, cant thank you enough
 
Another question (which i have half of the answer to), i have a bunch of entity codes which begin with E and some which begin with other letters. I would like another box (the location books held) box to automatically populate with a certain name if an entity with an E as the first character is selected.

I got this code in the entity code after update field, which clearly updates this field regardless of whether its an E or not... is there anoter function i can say, if the left character is E for then populate this field, otherwise leave it blank

for those of you who understand excel somethign like this formula:
=IF(LEFT(Entity Code,1)="E","Location 1","")

Me.Location_Books_Kept = "Location1"
 
The Access vba equivalent to IF is IIF. Syntax is the same.
 

Users who are viewing this thread

Back
Top Bottom