F
Frederick Wilson
Hello all,
The string below does not work in its current state. However, if I
remove the final line "ORDER BY e.EVENT_DESC;" and dress up the line
before it with a ";" it seems to work fine. However, the list is not in
any order. What am I doing wrong.
For what it's worth I use the below to adjust a list box's rowsourse.
Kind of a wizard, if you will.
strSQl = "SELECT '*' as EVENT_ID, 'All Capabilities' as EVENT_DESC FROM
tblEvent " & _
"UNION " & _
"SELECT e.EVENT_ID, e.EVENT_DESC " & _
"FROM tblEvent as e " & _
"INNER JOIN " & _
"(SELECT Event_ID FROM jtblFacilityCapabilities WHERE
PK_Weapon_ID = " & strWhere & ") as j " & _
"ON " & _
"e.Event_ID = j.Event_ID " & _
"ORDER BY e.EVENT_DESC;"
The string below does not work in its current state. However, if I
remove the final line "ORDER BY e.EVENT_DESC;" and dress up the line
before it with a ";" it seems to work fine. However, the list is not in
any order. What am I doing wrong.
For what it's worth I use the below to adjust a list box's rowsourse.
Kind of a wizard, if you will.
strSQl = "SELECT '*' as EVENT_ID, 'All Capabilities' as EVENT_DESC FROM
tblEvent " & _
"UNION " & _
"SELECT e.EVENT_ID, e.EVENT_DESC " & _
"FROM tblEvent as e " & _
"INNER JOIN " & _
"(SELECT Event_ID FROM jtblFacilityCapabilities WHERE
PK_Weapon_ID = " & strWhere & ") as j " & _
"ON " & _
"e.Event_ID = j.Event_ID " & _
"ORDER BY e.EVENT_DESC;"