on 10-14-2015 4:49 PM
Alguien puede ayudarme ... necesito saber como puedo poner un campo en el codigo sql como parametro
--------------------
Someone can help me ... I need to know how I can put a field in SQL as parameter
sql = "Select CardName from OCRD where CardCode='" & {param} & "'"
oRecordSet = SBO_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
oRecordSet.DoQuery(sql)
Hi,
I think there's nothing wrong in your query. In VB I'm using like
oQry = "SELECT CardCode, CardName FROM OCRD WHERE CardCode = '" & txt_Code.Value & "' "
txt_Code is a EditTextBox.
oRecordSet = SBO_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
oRecordSet.DoQuery(oQry)
Regards,
Bry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh, the problem is the oComboBox. Have you bind it already?
oComboBox = oForm.Items.Item("ComboBox").Specific
Regards,
Bry
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.