I have a database to manage membership. In it is a table called Settings. This table has various vield for setting default values for location, city, state, zip, and logo. Logo is an attachment field. I want the users of the database to be able to attach a logo and then have that logo used on the various forms and reports.
I have created VBA functions to set the get the values from the settings table and use them in the various forms and reports such as:
Function GetDefaultLocation() As String
GetDefaultLocation = Nz(DLookup("Location", "Settings"), 0)
End Function
Is it possible to create a similar function for GetLogo() that will utilize the Settings Attachment field to display the logo on other forms and reports? I cant use a peth to a logo as this will be used by different people on different computer systems for different organizations.