Have just got back into coding in Microsoft Access, so it might be something stupid.
Situation: Sqlite database linked to Access db via ODBC. Have created a form which has bound controls from a table.
Due to the way sqlite stores dates, as text, I am not able to use the calendar picker. I thought easy I can create an unbound text box control, set the format to date and then I will have a date picker. Then in VBA just get it to change the value of the bound date control, which would be hidden.
Me.txt_Date_of_birth.Value = Format(Me.Txtdate_of_birth_with_calandar_control.Text, global_date_format)
It works it changes the value of the bound control (which for testing is not hidden). But when I change records I am getting an error of
Write conflict. This record has been changed by another user since you started editing it. If you save the record, you will overwrite the changes the other user made.
From my testing it is being caused by this unbound control updating the bound control. Anyone know a simple fix? And I would prefer not to get my data from a query that formats the text field into a date field.
And I can confirm that the error does not occur when I create an access table and try to update a bound control.