Android SQL INSERT Date into Access -


i have android application sends data asp page, sends information access database. worked before. had issue our server , has been reset date field not submit properly. have limited experience , wondering if issue sql syntax. post relevant code in case else well.

quick breakdown of how app works. android code takes date, submits asp page through method. asp page uses sql statement insert access database.

android code (get statement):

string vars = "&reportdate=" + string.valueof(c.get(calendar.month) + 1) + "/"                     + string.valueof(c.get(calendar.day_of_month)) + "/" + string.valueof(c.get(calendar.year)) 

asp code (sql statement):

mysqlr=mysqlr & vreportdate & ", " 

is sql syntax incorrect submission access database?

edit

my issue date field not being written database when every other field is. date field has been left bank in every field.

the variable "reportdate" first field being appended url submission through method , "&" unnecessary , causing particular field not submitted.

editted code:

string vars = "reportdate=" + string.valueof(c.get(calendar.month) + 1) + "/"                 + string.valueof(c.get(calendar.day_of_month)) + "/" + string.valueof 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -