Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default values based on other fields

Status
Not open for further replies.

rickyzicky

Programmer
Dec 20, 2001
35
US
I have a field called [employesID]
If the employee # is "316", is it possible to set up the
[employeePhoto]field to have a defaults of:
[employeeid].jpg

Thanks in advance.

RZ
 
Not exactly but you can accomplish the same thing using the On Current event so that the form looks at the EmployeeId and then inserts that particular .jpg file if appropriate. In the On Current event for the form you would have code that says

If Me.EmployeeID = "316" Then 'assuming ID is a text value
Me.EmployeePhoto = employeeid.jpg
Else
End If

That should get you close.

Paul
 
Thanks;
For my needs, I don't believe that would work since I am incorporating it in asp. I would need to do it at a table level or in asp. I was trying the easy way first.
RZ
 
What, exactly, are you doing? Are you using any forms or are you just working at the table level? Some addtional info might help spark some ideas.

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top