A
Asif
I have a table (tbl_startdate) with two fields StartDateID (set as
number) and StartDate (set as Text). I also have a form with a textbox
(txt_StartDate) and on this same form I have a command button
(cmd_update). Now txt_StartDate takes its value from a listbox and
stores it as a default value but only untill the form is open if i
reopen the form the value in txt_StartDate dissappears. Hence I've
created this table (tbl_startdate) so before I close the form I click
on cmd_update and what happens is the value in txt_StartDate is placed
in StartDate field in tbl_startdate. I'm trying to run an SQL
statement for the on click event of cmd_update but nothing is
happening, have I missed something from my coding?
Dim strSQL As String
strSQL = "UPDATE tbl_startdate SET StartDate = " & txt_StartDate & " "
Please advise!! Thanks
number) and StartDate (set as Text). I also have a form with a textbox
(txt_StartDate) and on this same form I have a command button
(cmd_update). Now txt_StartDate takes its value from a listbox and
stores it as a default value but only untill the form is open if i
reopen the form the value in txt_StartDate dissappears. Hence I've
created this table (tbl_startdate) so before I close the form I click
on cmd_update and what happens is the value in txt_StartDate is placed
in StartDate field in tbl_startdate. I'm trying to run an SQL
statement for the on click event of cmd_update but nothing is
happening, have I missed something from my coding?
Dim strSQL As String
strSQL = "UPDATE tbl_startdate SET StartDate = " & txt_StartDate & " "
Please advise!! Thanks