R
Rob W
Greetings,
I'm using flash mx and MDM zinc which i assume connects using the JET rather
than ADO database engine.
For the life of me cannot get a simple update to work due to the dates
involved, lost count how many hours have gone by trying!!!
Within access I can easily switch quotes and hash symbols and they all THREE
work without problems i.e.
UPDATE UserOverallResults
SET Results = 20
WHERE UserName ='Robbie'
AND Quizdate= '19/2/2008 12:15'
UPDATE UserOverallResults
SET Results = 20
WHERE UserName ='Robbie'
AND Quizdate= "19/2/2008 12:15"
UPDATE UserOverallResults
SET Results = 20
WHERE UserName ='Robbie'
AND Quizdate= #19/2/2008 12:15#
Results (Integer) Username (Text) and QuizDate (Date/Time) within MS ACCESS
DB schema.
TextDate param is a STRING.
All parmaters are populated appropriately.
Example of existing date data stored in database in format "19/02/2008
16:48:11" as a DATE/TIME field.
My code within in flash is :-
mdm.Database.MSAccess.runQuery("UPDATE UserOverallResults SET Results = " +
UserScore + " WHERE UserName = '"+ UserName +"' AND QuizDate = '" +textDate
+ "' ");
I've tried with and without Hashes still no joy ..
mdm.Database.MSAccess.runQuery("UPDATE UserOverallResults SET Results = " +
UserScore + " WHERE UserName = '"+ UserName +"' AND QuizDate = Format( '"+
textDate +"', \"#yyyy\\-mm\\-dd hh\:nn\:ss#\")");
The error message I get from the code above is ..
SQL Query has failed for the following reason: Data type mismatch in
criteria expression SQL statement: UPDATE UserResultsOverall SET Resultes =
30 WHERE UserName = 'd' AND QuizDate = Format('19/2/2008 19:4:35'
,"#yyyy\-mm\-dd hh\nn\ss#")
My text string removes the leading zeros not sure if that would cause an
issue or not (its doesnt in MS ACCESS running query) ...
Anyone have any ideas??? Losing my mind here !!
PS I had problems using '&' instead of '+' to concatenate fields.
Cheers
Rob
I'm using flash mx and MDM zinc which i assume connects using the JET rather
than ADO database engine.
For the life of me cannot get a simple update to work due to the dates
involved, lost count how many hours have gone by trying!!!
Within access I can easily switch quotes and hash symbols and they all THREE
work without problems i.e.
UPDATE UserOverallResults
SET Results = 20
WHERE UserName ='Robbie'
AND Quizdate= '19/2/2008 12:15'
UPDATE UserOverallResults
SET Results = 20
WHERE UserName ='Robbie'
AND Quizdate= "19/2/2008 12:15"
UPDATE UserOverallResults
SET Results = 20
WHERE UserName ='Robbie'
AND Quizdate= #19/2/2008 12:15#
Results (Integer) Username (Text) and QuizDate (Date/Time) within MS ACCESS
DB schema.
TextDate param is a STRING.
All parmaters are populated appropriately.
Example of existing date data stored in database in format "19/02/2008
16:48:11" as a DATE/TIME field.
My code within in flash is :-
mdm.Database.MSAccess.runQuery("UPDATE UserOverallResults SET Results = " +
UserScore + " WHERE UserName = '"+ UserName +"' AND QuizDate = '" +textDate
+ "' ");
I've tried with and without Hashes still no joy ..
mdm.Database.MSAccess.runQuery("UPDATE UserOverallResults SET Results = " +
UserScore + " WHERE UserName = '"+ UserName +"' AND QuizDate = Format( '"+
textDate +"', \"#yyyy\\-mm\\-dd hh\:nn\:ss#\")");
The error message I get from the code above is ..
SQL Query has failed for the following reason: Data type mismatch in
criteria expression SQL statement: UPDATE UserResultsOverall SET Resultes =
30 WHERE UserName = 'd' AND QuizDate = Format('19/2/2008 19:4:35'
,"#yyyy\-mm\-dd hh\nn\ss#")
My text string removes the leading zeros not sure if that would cause an
issue or not (its doesnt in MS ACCESS running query) ...
Anyone have any ideas??? Losing my mind here !!
PS I had problems using '&' instead of '+' to concatenate fields.
Cheers
Rob