07 vs 03 If/Then error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

The If/then below was developed in Access03 and works on machines with
Access03 but is throwing an error on the one machine with Access2007:

If Me.TollLotSubRpt.Report!CATtype2 = "n/a" Then
Me.TollLotSubRpt.Report!CATtype2.Visible = False
End If

The error is 'object not found' and I suppose it is not finding the
subreport control. This vb is in the Report's Detail 'OnFormat' event.

Would welcome advice - plus as I do have to accommodate the 07 machine
ongoing if there is an outline of differences I would welcome a point of
reference on this. thanks
 
still don't have a solution - but realize this is a report question not a
form question...and so will repost over there...
 
Back
Top