I am using a MySQL back end and Access front end. One of my MySQL tables has three fields all defined as tiny ints, no nulls, default 0, field width 2.
On my form I have three checkboxes, each linked to the three fields. I have the EXACT SAME CODE for each after update:
The first 2 work beautifully, the third gives me a compile error, variable not definded on dpr_work.
The other strange thing is that you know how the VBA editor does an autofill suggestion when you start typing me.? When I scroll through the list it shows me everything in my database EXCEPT that one field it is throwing the error on.
I can not for the life of me figure out why and I'm about totally and completely lose my mind. I've triple checked spellings, updated tables, rebooted my machine and nothing. I've confirmed that the field is in the table - both through phpmyadmin (which I'm using to create/edit the tables) and even in Access. You can see the field in the table and in the table design view. The only place it doesn't show up is in the VBA editor auto fill thing.
W.T.F.
Thanks for any help.
On my form I have three checkboxes, each linked to the three fields. I have the EXACT SAME CODE for each after update:
Code:
Private Sub chkJHA_AfterUpdate() If chkJHA.Value = True Then dpr_safety = 1 Else dpr_safety = 0 End If End Sub --------------------------------- Private Sub chkVehicle_AfterUpdate() If chkVehicle.Value = True Then dpr_vehicle = 1 Else dpr_vehicle = 0 End If End Sub ------------------------------ Private Sub chkWork_AfterUpdate() If chkWork.Value = True Then dpr_work = 1 Else dpr_work = 0 End If End Sub
The other strange thing is that you know how the VBA editor does an autofill suggestion when you start typing me.? When I scroll through the list it shows me everything in my database EXCEPT that one field it is throwing the error on.
I can not for the life of me figure out why and I'm about totally and completely lose my mind. I've triple checked spellings, updated tables, rebooted my machine and nothing. I've confirmed that the field is in the table - both through phpmyadmin (which I'm using to create/edit the tables) and even in Access. You can see the field in the table and in the table design view. The only place it doesn't show up is in the VBA editor auto fill thing.
W.T.F.
Thanks for any help.
Comment