SQL GUID translates into Chinese

K

Kelly

Hi,
Can someone help me figure out why I am getting the error "Malformed GUID.
in query expression...", with the expression
containing Chinese-looking characters instead of the GUID value? Here is the
code:

Private Sub Form_Load()

Dim vargd As Variant
vargd = Me.ctlGUID
Dim str As String

str = "SELECT First_Name, [Name] FROM [ContactList] WHERE
((([ContactList].GUID)={guid " & vargd & "}));"

Me.Combo0.RowSource = str
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top