Hi,
Can I add a record with a word [ALL] in location field while fetching record from a table using the following syntax in Bold/Italic?
Can I add a record with a word [ALL] in location field while fetching record from a table using the following syntax in Bold/Italic?
Code:
Local lcSQL
mpcode = UPPER(This.parent.mCustCode.ssTextBox1.Value)
TEXT TO lcSQL NOSHOW PRETEXT 12
[i][b]SELECT DISTINCT location FROM location WHERE pcode = mpcode INTO CURSOR tLocation ORDER BY location READWRITE[/b][/i]
Endtext
With This As ComboBox
.RowSourceType = 3
.RowSource = Strtran(m.lcSQL,";","")
.ColumnCount = 1
.ColumnWidths = '110'
.BoundColumn = 3
.BoundTo = .T.
.Value = 0
.Style = 2
.ListIndex = 1
ENDWITH