Hi,
I am having problems with syntax. So, I have a table (TableName) with four fields; FieldName, FieldName2, FieldName3 and FieldName4. FieldName and FieldName2 make up the primary key. I want to find the last two fields with some given conditions on the primary key.
"SELECT" & FieldName3 & "AND" & FieldName4 & _
"FROM" & TableName & _
"WHERE" &FieldName& "#" & CStr(Year(jour)) & "/" & CStr(Month(jour)) & "/" & CStr(Day(jour)) & "#" & _
"AND" &FieldName2 & "#" & CStr(Hour(heure)) & ":" & CStr(Minute(heure)) & "#"
If anyone can explain why this is not working it would be great! Thank you
Asdis
I am having problems with syntax. So, I have a table (TableName) with four fields; FieldName, FieldName2, FieldName3 and FieldName4. FieldName and FieldName2 make up the primary key. I want to find the last two fields with some given conditions on the primary key.
"SELECT" & FieldName3 & "AND" & FieldName4 & _
"FROM" & TableName & _
"WHERE" &FieldName& "#" & CStr(Year(jour)) & "/" & CStr(Month(jour)) & "/" & CStr(Day(jour)) & "#" & _
"AND" &FieldName2 & "#" & CStr(Hour(heure)) & ":" & CStr(Minute(heure)) & "#"
If anyone can explain why this is not working it would be great! Thank you
Asdis