Hi all,
I'm a C++ programmer trying to help out a friend with a VBA app someone else wrote for him years ago. Don't know a lot about VBA. There is a report in this app that has a particular table (a table of clients) as its "Record Source", and when the report is opened, it uses a filter on that table:
strLog = [LOG_NO]
strFilter = "[LOG_NO] = " & "'" & strLog & "'"
I want to create a new table that just has a single row for "system-wide" information, that there's only one instance of, and that might change someday, such as the office address, the date the notary's commission expires (this is the one I need now!!), office phone number, etc. I'd like to pull this NotaryExpiratio n field from this table and put it on the report.
I tried creating a text field that references the table and the field; I tried creating a query that selects the NotaryExpiratio n field from the table and referencing that on the report, but no matter what I do, I get "#Error" on the report. Is it possible to pull data from multiple tables onto a single report? Do I need to put something extra into my filter string?
Alternatively, is there some other good way of handling such data, so that I don't have to show up every few years, find the .mdb file, change the Notary Commission Expires date on the report, and recompile it into an .mde file?? ;-)
I'm a C++ programmer trying to help out a friend with a VBA app someone else wrote for him years ago. Don't know a lot about VBA. There is a report in this app that has a particular table (a table of clients) as its "Record Source", and when the report is opened, it uses a filter on that table:
strLog = [LOG_NO]
strFilter = "[LOG_NO] = " & "'" & strLog & "'"
I want to create a new table that just has a single row for "system-wide" information, that there's only one instance of, and that might change someday, such as the office address, the date the notary's commission expires (this is the one I need now!!), office phone number, etc. I'd like to pull this NotaryExpiratio n field from this table and put it on the report.
I tried creating a text field that references the table and the field; I tried creating a query that selects the NotaryExpiratio n field from the table and referencing that on the report, but no matter what I do, I get "#Error" on the report. Is it possible to pull data from multiple tables onto a single report? Do I need to put something extra into my filter string?
Alternatively, is there some other good way of handling such data, so that I don't have to show up every few years, find the .mdb file, change the Notary Commission Expires date on the report, and recompile it into an .mde file?? ;-)
Comment