I
Iram
Hello,
Below is vba on the On Click of a command button that is used to open a form
called "frm_AltaDeRegistrosPagina1-2Analista", match the Record ID to the
local form's Record ID, then make the "Data Entry" attribute = No. For some
reason it is not working correctly. I need the vba to change the "Data Entry"
attribute = No, so that I can modify the data on that form. The said form
above is usually used to add records using the "Data Entry" attribute and via
using the switchboard "Add Record" setting. Now I need to access the same
form to modify records. Can you help me fix the below vba and could you also
type up vba for me to put on the "On Close" of the form so that the vba sets
the "Data Entry" setting back = Yes?
Private Sub ModificarRegistrante_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frm_AltaDeRegistrosPagina1-2Analista"
DoCmd.OpenForm stDocName, , , stLinkCriteria
stLinkCriteria = "[RecordID]=" & Me![RecordID]
Forms(stDocName).DataEntry = False
End Sub
Your help is greatly appreciated.
Thanks.
Iram/mcp
Below is vba on the On Click of a command button that is used to open a form
called "frm_AltaDeRegistrosPagina1-2Analista", match the Record ID to the
local form's Record ID, then make the "Data Entry" attribute = No. For some
reason it is not working correctly. I need the vba to change the "Data Entry"
attribute = No, so that I can modify the data on that form. The said form
above is usually used to add records using the "Data Entry" attribute and via
using the switchboard "Add Record" setting. Now I need to access the same
form to modify records. Can you help me fix the below vba and could you also
type up vba for me to put on the "On Close" of the form so that the vba sets
the "Data Entry" setting back = Yes?
Private Sub ModificarRegistrante_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frm_AltaDeRegistrosPagina1-2Analista"
DoCmd.OpenForm stDocName, , , stLinkCriteria
stLinkCriteria = "[RecordID]=" & Me![RecordID]
Forms(stDocName).DataEntry = False
End Sub
Your help is greatly appreciated.
Thanks.
Iram/mcp