I have to change some titles of my reports from hard coded values to something easily changed by the user, as the database I am using will now be distributed to different areas within the business.
I have created a General Information Table, that Users can maintain.
The table has two columns, with similar information contained as shown below
The sort of query I am looking at is:
This gives me RECOVERY, which is the label/caption I want in the report
But how do I write this in vba?? Can anyone help me fill in the ? below.
Thanks
Thanks
I have created a General Information Table, that Users can maintain.
The table has two columns, with similar information contained as shown below
Code:
ATTRIBUTENAME ATTRIBUTEVALUE DepartmentName RECOVERY DepartmentHead Linda Lost DepartmentEmail Email@Department DepartmentAddress 10 Collins Street, Melbourne
Code:
SELECT tblGeneralInformation.Attributename FROM tblGeneralInformation WHERE (((tblGeneralInformation.attributevalue)='DepartmentName'));
But how do I write this in vba?? Can anyone help me fill in the ? below.
Thanks
Code:
Private Sub Report_Open(Cancel As Integer) lblDepartmentName.Caption = ? End Sub
Comment