Hi Brent
Different error now:
"The object doesnt contain the Automation object 'ILLA2530.' "
Interestingly, ILLA2530 is the correct lookup that I want inserted into the
combo. Not sure if it makes any difference, but Im using the builder, not VBA.
Regards
Andrew
"Brent Spaulding (datAdrenaline)" wrote:
> I would suggest that you create the literal string in your criteria of the
> DLookup() ...
>
> If "ID" is Numeric ...
> =DLookUp("[AutoASC]","[RetailerASCList]","ID=" &
> Nz([Forms]![ClaimEntry]![Store],0))
>
> If "ID" is Text ...
> =DLookUp("[AutoASC]","[RetailerASCList]","ID='" &
> Nz([Forms]![ClaimEntry]![Store],"") & "'")
>
> Also, make sure the form is open before you run the macro ..
>
> --
> Brent Spaulding | datAdrenaline | Access MVP
>
> "Andrew P." <(E-Mail Removed)> wrote in message
> news:87771994-2C4E-46C0-9DAC-(E-Mail Removed)...
> > Hi All
> >
> > Im a bit confused as to why Access2007 throws errors back when I use the
> > following statement with set value or set temp var, but is fine with
> > msgbox:
> >
> > =DLookUp("[AutoASC]","[RetailerASCList]","ID=
> > [Forms]![ClaimEntry]![Store]")
> >
> > When it complains, it throws a screen with "Action Failed" and error
> > number
> > 2950.
> >
> > Any help would be great
> > Thanks
> > Andrew
>
>
>
|