I almost have it working!
I am having a date problem trying to submit a form into an MS Access database.
After searching around the Tek-Tips forum i suspect it has to do with the 'pound sign' format that Access expects.
The error message is that there is a syntax error on my INSERT INTO string.
To counteract it, I was trying to populate the hidden text field via a cookie and concantenate in '#' on each side.
Here is the code:
-------------------------------
<input name="txtMatchDate" type="hidden" id="txtMatchDate" value="#" & <%= Request.Cookies("MatchSetup")("MatchDate") %> & "#">
-------------------------------
The cookie data looks like this:
MatchDate=9%2D15%2D2004&VisitingTeam=Del+Val&HomeTeam=Del+Val
The date in a textbox that is not hidden looks like this: 9-15-2004
I am using a DateTimePicker to select the date so that the format is consistant and can change the hypen.
I remember that sending a "/" or some other symbols are forbidden, is that the problem??
Either I am concantanating incorrectly or I am wrong about the formatting problem.
Thanks for your help..
I am having a date problem trying to submit a form into an MS Access database.
After searching around the Tek-Tips forum i suspect it has to do with the 'pound sign' format that Access expects.
The error message is that there is a syntax error on my INSERT INTO string.
To counteract it, I was trying to populate the hidden text field via a cookie and concantenate in '#' on each side.
Here is the code:
-------------------------------
<input name="txtMatchDate" type="hidden" id="txtMatchDate" value="#" & <%= Request.Cookies("MatchSetup")("MatchDate") %> & "#">
-------------------------------
The cookie data looks like this:
MatchDate=9%2D15%2D2004&VisitingTeam=Del+Val&HomeTeam=Del+Val
The date in a textbox that is not hidden looks like this: 9-15-2004
I am using a DateTimePicker to select the date so that the format is consistant and can change the hypen.
I remember that sending a "/" or some other symbols are forbidden, is that the problem??
Either I am concantanating incorrectly or I am wrong about the formatting problem.
Thanks for your help..