Hmm... I used % instead of * and it worked.
------------------------------------------------
records.Open "SELECT record.amount FROM record WHERE vendor_code = '" & vendor & "' AND period_covered LIKE '" & SelectMonth & "%';", Application.CodeProject.Connection, adOpenStatic, adLockOptimistic...
selectMonth is set as a String. It contains the value from a combo box control.
vendor is another String that contains the value from another combo box.
The purpose of the select statement is to extract the "amount" value from the records where the records have both "vendor" and...
Thanks FoFa. I understand that but I am actually looking for the syntax.
SelectMonth is a combo control that I am quoting in the SELECT statement. At the same time, I also want to add * at the end of SelectMonth to catch the full word of the month like "January". I couldn't figure out the...
Could someone give me a heads up on how to quote * in the select statement??
Here is my code. I am not sure where to put the * and how to quote it.
I am trying to catch the month. For example catch January by using Jan*
----------------------------------------------------------------------...
Oh...it worked!
It must be the spacing because I tried the single quotes at first and it didn't work.
Then I just tried again by copying an pasting the codes you editted.
Thanks a bunch, Bogzla!! Appreciated!!!
I am not sure which one I did is numeric.
"vendor" is a String that I am trying to pass in.
The following statement works when I use it.
--------------------------------------------
Me!List212.RowSource = "SELECT record.ID, record.vendor_code, record.invoice_date, record.period_covered...
Hope someone can help me on this. I am trying to load a table into a RecordSet, but it seems I cannot load the data. I can get the column headers but not the values.:confused:
I had some code to MsgBox the values of the table but it's all blank so I don't think the table is loaded into the...