I am having a headache over this!
I have some code which is based on query field, and then populates an unbound txtbox in a report..
I have the code in the onOpen event of the report..
so the report is based on the query.. it opens.. runs the code..grabs the field and populates the new field..
the problem I am having is that
1. I cannot get the code to grab the field..
2. or populate the new field within the report.
the issues I have is that I am unsure of the code needed to grab the data... do I go back to the query or can I grab it from the report.. ( I am quite unsure of the syntax needed for this.. I keep geting stuck around querydef and me!....)
and is it because of the nature of the report that you cannot use it as a source for the code...
I am fine with code within forms but seem to invite probelms when I start to use it for reports and queries...
bah!
cheers
John.
I have some code which is based on query field, and then populates an unbound txtbox in a report..
I have the code in the onOpen event of the report..
so the report is based on the query.. it opens.. runs the code..grabs the field and populates the new field..
the problem I am having is that
1. I cannot get the code to grab the field..
2. or populate the new field within the report.
the issues I have is that I am unsure of the code needed to grab the data... do I go back to the query or can I grab it from the report.. ( I am quite unsure of the syntax needed for this.. I keep geting stuck around querydef and me!....)
and is it because of the nature of the report that you cannot use it as a source for the code...
I am fine with code within forms but seem to invite probelms when I start to use it for reports and queries...
bah!
cheers
John.