G
gmazza via AccessMonster.com
Hey there,
I am having a problem with my combo box. I have 3 in total and 2 of them are
Text fields so when I add the (All) to my Union query everything is fine. I
figured out a way to add (All) to my numeric field combo box but my
AfterUpdate code on this ssame combo box keeps erroring.
Here is my Row Source for my combo box:
SELECT DISTINCT dbo_DDXLMO.HoleSz, dbo_DDXLMO.HoleSz FROM dbo_DDXLMO UNION
SELECT Null, '(All)' As HoleSz FROM dbo_DDXLMO;
Column Count: 2
Column Widths: 0;2
Bound Column: 1
Once I select (All) on my form, I get a syntax error in my AfterUpdate
event for the HoleSz combo box. Its a syntax error (missing operator) in
query expression and HoleSz =
For my Text box combo boxes that work when I choose (All), in the query
expression it actually has a "
For example, the same query expression where I'm getting an error it says and
BitType = " and HoleSz =
If I take out BitType so I just want to see where its erroring exactly, it
gives the same error on HoleSz as I'm guessing it doesn't like HoleSz =
nothing.
How can I make this work?
Thanks in advance.
I am having a problem with my combo box. I have 3 in total and 2 of them are
Text fields so when I add the (All) to my Union query everything is fine. I
figured out a way to add (All) to my numeric field combo box but my
AfterUpdate code on this ssame combo box keeps erroring.
Here is my Row Source for my combo box:
SELECT DISTINCT dbo_DDXLMO.HoleSz, dbo_DDXLMO.HoleSz FROM dbo_DDXLMO UNION
SELECT Null, '(All)' As HoleSz FROM dbo_DDXLMO;
Column Count: 2
Column Widths: 0;2
Bound Column: 1
Once I select (All) on my form, I get a syntax error in my AfterUpdate
event for the HoleSz combo box. Its a syntax error (missing operator) in
query expression and HoleSz =
For my Text box combo boxes that work when I choose (All), in the query
expression it actually has a "
For example, the same query expression where I'm getting an error it says and
BitType = " and HoleSz =
If I take out BitType so I just want to see where its erroring exactly, it
gives the same error on HoleSz as I'm guessing it doesn't like HoleSz =
nothing.
How can I make this work?
Thanks in advance.