I can get this query to work...but its quering a Double Field (ANGLE):' Build Query Statement
Dim varQuery
varQuery = "SELECT OBJECTID FROM SIGNS_STANDALONETABLE WHERE ANGLE = 270"
' Set up recordset query
Dim pRS6
Set pRS6 = pDS6.Execute(varQuery)
' Move first
pRS6.MoveFirst
Do While Not pRS6.EOF
Dim MaxID, MaxID2
MaxID = pRS6.Fields("OBJECTID").Value
MaxID2 = MaxID2 & ", " & MaxID
pRs6.MoveNext
Loop
msgbox "Max ID: " & MaxID2
But I need to query a string field and I cant get that to work....this is what I was trying:ID is a text field in the tablevarQuery = "SELECT OBJECTID FROM SIGNS_STANDALONETABLE WHERE ID = "01NW-001" "
I then wrote it to a variable and tried this:Dim varUniqueID
varUniqueID = "01NW-001"
varQuery = "SELECT OBJECTID FROM SIGNS_STANDALONETABLE WHERE ID = " & varUniqueID & " "
neither works....any thoughts?THanks in advance....