Hello -- I have vetted my MS Access database -- no fields are required, in all fields zero length strings are required. I can't tell of any relationship ('referential integrity') problems.
But with the following query:
update Member set FName = 'John',MName = '',LName = 'Doe',children = 0,email = '',hideAddress = 0,LastUpdate = '6/26/2005',local = 0,MakeEmailPrivate = 0,Married = 0,MobilePhone = NULL,Occupation = '',UName = '',Password = '',PersonalURL = '',AreaCode = 937,Phone = '999-9999',QuickMsg = '',SignificantOtherName = '',StreetAddress = '575 Bellaire Drive',City = 'Los Angles',State = 'CA',ZipCode = '02139',Status = -1,Visits = 0 where ID = 65
I get the following error:
Error Type:
Microsoft JET Database Engine (0x80040E14)
Syntax error in UPDATE statement.
And it references this line (denoted by !!!) in my code:
Set MyCmd = Server.CreateObject("ADODB.Command")
MyCmd.ActiveConnection = strCorrectConnection
MyCmd.CommandText = myQuery
!!! MyCmd.Execute !!!
MyCmd.ActiveConnection.Close
Now the databse connects correctly runs other updates fine and this update works fine in the access database when I run it as a query.
Here are the fileds in my table (with relevant datatype):
ID (AutoNum)
FName (Text)
LName (Text)
MName (Text)
StreetAddress (Text)
hideAddress Yes/No
City (Text)
State (Text)
ZipCode (Text)
email (Text)
MakeEmailPrivate Yes/No
local Yes/No
LastUpdate Date/Time
Married Yes/No
SignificantOtherName (Text)
Phone (Text)
AreaCode (Number
MobilePhone (Number
PersonalURL (Text)
Status Number
UName (Text)
Password (Text)
children Number
QuickMsg (Text)
Occupation (Text)
Visits (Number)
Never had a problem this hard to track down, I suspect a check-box error or null/empty field issue. Please help, I have troubleshot this to my max capability.
Regards,
Tim
But with the following query:
update Member set FName = 'John',MName = '',LName = 'Doe',children = 0,email = '',hideAddress = 0,LastUpdate = '6/26/2005',local = 0,MakeEmailPrivate = 0,Married = 0,MobilePhone = NULL,Occupation = '',UName = '',Password = '',PersonalURL = '',AreaCode = 937,Phone = '999-9999',QuickMsg = '',SignificantOtherName = '',StreetAddress = '575 Bellaire Drive',City = 'Los Angles',State = 'CA',ZipCode = '02139',Status = -1,Visits = 0 where ID = 65
I get the following error:
Error Type:
Microsoft JET Database Engine (0x80040E14)
Syntax error in UPDATE statement.
And it references this line (denoted by !!!) in my code:
Set MyCmd = Server.CreateObject("ADODB.Command")
MyCmd.ActiveConnection = strCorrectConnection
MyCmd.CommandText = myQuery
!!! MyCmd.Execute !!!
MyCmd.ActiveConnection.Close
Now the databse connects correctly runs other updates fine and this update works fine in the access database when I run it as a query.
Here are the fileds in my table (with relevant datatype):
ID (AutoNum)
FName (Text)
LName (Text)
MName (Text)
StreetAddress (Text)
hideAddress Yes/No
City (Text)
State (Text)
ZipCode (Text)
email (Text)
MakeEmailPrivate Yes/No
local Yes/No
LastUpdate Date/Time
Married Yes/No
SignificantOtherName (Text)
Phone (Text)
AreaCode (Number
MobilePhone (Number
PersonalURL (Text)
Status Number
UName (Text)
Password (Text)
children Number
QuickMsg (Text)
Occupation (Text)
Visits (Number)
Never had a problem this hard to track down, I suspect a check-box error or null/empty field issue. Please help, I have troubleshot this to my max capability.
Regards,
Tim