-----Original Message-----
(resending because original message doesn't appear)
-----Original Message-----
How do I check references?
Sample drilldown code.
[ProductSerialNoID]=[Forms]![Order Detail]![Product
Subform]![ProductSerialNoID]
-----Original Message-----
I have an application that uses a drill down from subform
and a field of the subform is used to select the record to
display at the lower level. This works just fine with
access from office 2000, but fails with access from office
2003. The problem appears to be that the subform field is
not risible at the lowe level so the form comes up blank
instead of selecting the proper record.
Could you post the code and give more details? I don't have Access
2003, but I might notice something. Have you checked your
references to make sure a broken reference isn't behind the odd
behavior?
Please post more of the surrounding code, preferably the entire event
procedure, to put the code in context.
On the subform I have a Command Box with the "Event On
Click" defined as "Drill Down.OrderToProduct".
The drill down macro named OrderToProduct has an action of
OpenForm. The form name is ProductDetail and the Where
Condition is defined as [ProductSerialNoID]=[Forms]! [Order
Detail]![Product Subform]![ProductSerialNoID]
Where ProductSerialNoID is a valid element on the Product
Subform display.
Oh, so this is a macro, not VBA code at all. I hadn't understood that
before -- the fact that your post is in the formscoding newsgroup misled
me. I'm not even all that familiar with macros, as I don't use them,
but it doesn't really make sense that the problem should be with the
macro itself.
Does it help if you change the macro action's Where Condition to
[ProductSerialNoID]=[Forms]![Order Detail]![Product
Subform].[Form]![ProductSerialNoID]
? (See where I've inserted the ".[Form]" qualifier?) I wouldn't expect
that to be necessary, but I've heard that Access 2003 is pickier about
some object references than earlier versions.