on 05-02-2016 6:51 PM
Hi guys,
I am new to B1 and I can't get data from a user defined table. (@MBB_S)
I get syntax error at the '@'
Does anybody know how to encode the string in VB to make it work?
I am running version 9.2 on Hana
My code is:
SqlStr = "SELECT U_MBB1 FROM @MBB_S"
oRecSet.DoQuery(SqlStr)
While Not oRecSet.EoF
Windows.Forms.MessageBox.Show("MBB1" & oRecSet.Fields.Item("MBB1").Value & _
"MBB2" & oRecSet.Fields.Item("MBB2").Value)
' Get the next record
oRecSet.MoveNext()
End While
Thanks,
Martin
SqlStr = SELECT "U_MBB1" FROM "[@MBB_S]"
Try this.
Thanks,
Harshal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SqlStr = "SELECT U_MBB1 FROM [@MBB_S]"
you should add [] on table name.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
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.