How might I get the user to input the date and time easily. I have tried having seperate controls for time and date but can't combine the values to save in one date/time field -
DoCmd.RunSQL "INSERT INTO tblbookings ([StartDate],_[EndDate],[UserID],[ResID],[FileLocation]) VALUES _(txtStartDate & ' '& txtStartTime,txtEndDate & ' ' &_ txtendTime, txtUserID ,cboAvailRes, txtFileLoc);"
gives error due to type conversion error.
I have tried custom format for the DT picker of dd/MM/yyyy hh:mm but this is not a friendly way of inputing.
Any ideas anyone?
DoCmd.RunSQL "INSERT INTO tblbookings ([StartDate],_[EndDate],[UserID],[ResID],[FileLocation]) VALUES _(txtStartDate & ' '& txtStartTime,txtEndDate & ' ' &_ txtendTime, txtUserID ,cboAvailRes, txtFileLoc);"
gives error due to type conversion error.
I have tried custom format for the DT picker of dd/MM/yyyy hh:mm but this is not a friendly way of inputing.
Any ideas anyone?