G
Guest
Hi, i'm having problems to get the other values of one table with an SQL
statement.
i did the next code, but it always show me that the value number it's false:
For i = 0 To d - 1
b = Me.[Lmedicamento].Column(i) 'Name of the field selected in the LisBox
Next i
MsgBox "O nome é " & b & ".", vbOKOnly
strsql = "SELECT Código FROM Gotas Coliriose Pomadas WHERE Medicamento = b"
MsgBox "o numero é " & strsql & "."
i did the SQL statement to select the value of the Código in the table where
the field Medicamento is b, for example the b = PANASORBE and the code of b
is
code = 123456, what i want to the sql statement to do it's, get valeu of the
code, like in this case the value of the code = 123546
The MSgbox in the Program are too show what is happened, so don't worry
about that.
thanks
statement.
i did the next code, but it always show me that the value number it's false:
For i = 0 To d - 1
b = Me.[Lmedicamento].Column(i) 'Name of the field selected in the LisBox
Next i
MsgBox "O nome é " & b & ".", vbOKOnly
strsql = "SELECT Código FROM Gotas Coliriose Pomadas WHERE Medicamento = b"
MsgBox "o numero é " & strsql & "."
i did the SQL statement to select the value of the Código in the table where
the field Medicamento is b, for example the b = PANASORBE and the code of b
is
code = 123456, what i want to the sql statement to do it's, get valeu of the
code, like in this case the value of the code = 123546
The MSgbox in the Program are too show what is happened, so don't worry
about that.
thanks