Hi there,
I have designed an Acess database that is currently active with a lot of help from an expert - I am completely new at this so bear with me if this seems so simple!
I have a form with 2 subforms. the fields in the form itself are unbound. I was in design view, right-clicked on the form ("grey area") and chose tabbing in order to better arrange the tab function. It tabs just fine, however when in another form that is coded to open this main form (when data is entered into the second sub form), the Run time Error 2164 "You can't disable the control while it has the focus" comes up. All I did was change the tabbing and I don't have a clue what the error message means! I don't even know what the code itself means (embarassing but true!) My expert is out of town. Here is the code it brings me to:
On Error Resume Next
DoCmd.OpenForm "New MTN", acNormal, , , , , "fromItemSearch"
Forms![new mtn].Form![Shipped From] = Location
Forms![new mtn].Form![Shipped From].Locked = True
Forms![new mtn].Form![Shipped From].Enabled = False
Resume
I would really appreciate any help I can get as soon as possible! Thank you!
I have designed an Acess database that is currently active with a lot of help from an expert - I am completely new at this so bear with me if this seems so simple!
I have a form with 2 subforms. the fields in the form itself are unbound. I was in design view, right-clicked on the form ("grey area") and chose tabbing in order to better arrange the tab function. It tabs just fine, however when in another form that is coded to open this main form (when data is entered into the second sub form), the Run time Error 2164 "You can't disable the control while it has the focus" comes up. All I did was change the tabbing and I don't have a clue what the error message means! I don't even know what the code itself means (embarassing but true!) My expert is out of town. Here is the code it brings me to:
On Error Resume Next
DoCmd.OpenForm "New MTN", acNormal, , , , , "fromItemSearch"
Forms![new mtn].Form![Shipped From] = Location
Forms![new mtn].Form![Shipped From].Locked = True
Forms![new mtn].Form![Shipped From].Enabled = False
Resume
I would really appreciate any help I can get as soon as possible! Thank you!