G
Guest
I am having some strange problems with Dlookups on my form. I have a form
backed by a query. On the form I have a few combo boxes and calculated
fields. I then have some text boxes (unbound) where I am placing my Dlookup
statements.
I am asking the Dlookup to find a value ([ColorName]) in one column on a
query ([Customer Color Query]) where a value on my form ([CONCAT1]) = a value
in another column ([CONCAT])on the same query. I have 12 text boxes with
Dlookup statements total. I KNOW my syntax is correct - I've seen the
multiple posts on multiple sites in multiple forums showing me what syntax to
use when using criteria that is either a date, text, or a number. In my case
it's all text so i'm using the "[My Field] = ' " & [My Other Field] & " ' "
syntax for my criteria.
So here's the weird thing....
In my 12 Dlookup statements, I get them all to "work" - they pull the value
I want off the query. However, when I go to print preview the form with all
the Dlookups on it, some fields maintain the value they've pulled, some
change to #Name?. When the form prints, it does this as well. I can't
figure this out. Anyone have any ideas? I can post more info if required.
Oh yes, I have Access 2002 newly installed on my machine. Do I need Office XP
service pack 3 to fix my problems? The office update site says I need SP3, I
just don't know if that will fix my issue or not.
Thanks for your help,
-Chris
backed by a query. On the form I have a few combo boxes and calculated
fields. I then have some text boxes (unbound) where I am placing my Dlookup
statements.
I am asking the Dlookup to find a value ([ColorName]) in one column on a
query ([Customer Color Query]) where a value on my form ([CONCAT1]) = a value
in another column ([CONCAT])on the same query. I have 12 text boxes with
Dlookup statements total. I KNOW my syntax is correct - I've seen the
multiple posts on multiple sites in multiple forums showing me what syntax to
use when using criteria that is either a date, text, or a number. In my case
it's all text so i'm using the "[My Field] = ' " & [My Other Field] & " ' "
syntax for my criteria.
So here's the weird thing....
In my 12 Dlookup statements, I get them all to "work" - they pull the value
I want off the query. However, when I go to print preview the form with all
the Dlookups on it, some fields maintain the value they've pulled, some
change to #Name?. When the form prints, it does this as well. I can't
figure this out. Anyone have any ideas? I can post more info if required.
Oh yes, I have Access 2002 newly installed on my machine. Do I need Office XP
service pack 3 to fix my problems? The office update site says I need SP3, I
just don't know if that will fix my issue or not.
Thanks for your help,
-Chris