V
Vsn
Hello all,
I possibly posted this request in the wrong news group yesterday, jet
another try:
I try to make a report where I need the fields fPersID and fPersName
printed, this goes in a textbox no problem. Now I need, in my VBA code, the
data from the field fTestField to see what the code should do next. I
thought I could get this code like stgX = me![fTestField], this however
gives and error (2465).
I do set the record source for the report as below at the Report_Open event.
Rsrc = "SELECT fPersID, fPersName, fTestField FROM tblPers"
Me.RecordSource = Rsrc
I would like to set Me.txtTest = to the fTestField date, which is in the
record source.
Can someone tell me how I can get access to the data fTestField without
linking this to a field/text box on the report.
Thx a lot.
Ludovic
I possibly posted this request in the wrong news group yesterday, jet
another try:
I try to make a report where I need the fields fPersID and fPersName
printed, this goes in a textbox no problem. Now I need, in my VBA code, the
data from the field fTestField to see what the code should do next. I
thought I could get this code like stgX = me![fTestField], this however
gives and error (2465).
I do set the record source for the report as below at the Report_Open event.
Rsrc = "SELECT fPersID, fPersName, fTestField FROM tblPers"
Me.RecordSource = Rsrc
I would like to set Me.txtTest = to the fTestField date, which is in the
record source.
Can someone tell me how I can get access to the data fTestField without
linking this to a field/text box on the report.
Thx a lot.
Ludovic