Sorry about that, I apparently hit the wrong key!
Basically, I have a string in a query (used as rowsource for a list box).
I've pared it down to try to find the error. Right now, I've got:
item_list.RowSource = "select [product].[category_id] &
[product].[factor_id] & format([product].[RCI_style], "0000") & "-" &
IIf(IsNull([product].[length]),"00",IIf(Val([product].[length])=Rnd(Val([product].[length])),Format$(Val([product].[length]),"00"),Format(Rnd(Val([produ
ct].[length])*10),"00"))) AS style_str " _
& "FROM product WHERE product.vendor_id = 2;"
I am getting an "Error Expected End of Statement" at the "0000".
Can anyone help me please?
I am trying to build a string consisting of a single char category_id,
single char factor_id, a 4-digit formatted style_no, a "-" and a 2-digit
formatted length (which is a string).
Thanks,
Alden
ABL said:
Basically, I have a string in a query (used as rowsource for a list box).
I've pared it down to try to find the error. Right now, I've got: