S
sue gray
I have a form that I open in read only that has a calendar popup for the date
fields. When I open the form the calendar pop up allows the date to be
changed. The rest of the fields are read only. Any suggestions. Thanks
Private Sub ViewActivityNote_Click()
On Error GoTo Err_ViewActivityNote_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "FRM - Activity Note"
stLinkCriteria = "[activitynoteid]=" & Me![activitynoteid]
DoCmd.OpenForm stDocName, , , stLinkCriteria, acFormReadOnly
Exit_ViewActivityNote_Click:
Exit Sub
Err_ViewActivityNote_Click:
MsgBox Err.Description
Resume Exit_ViewActivityNote_Click
End Sub
__________________________________
Option Compare Database
Option Explicit
Public Today As Control, ctldate As Control
Function PopCalendar()
On Error GoTo PopCalendar_Err
Set ctldate = Screen.ActiveControl
DoCmd.OpenForm "FRM - Calendar"
PopCalendar_Exit:
Exit Function
PopCalendar_Err:
MsgBox "Error:" + Error$
Resume PopCalendar_Exit
End Function
fields. When I open the form the calendar pop up allows the date to be
changed. The rest of the fields are read only. Any suggestions. Thanks
Private Sub ViewActivityNote_Click()
On Error GoTo Err_ViewActivityNote_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "FRM - Activity Note"
stLinkCriteria = "[activitynoteid]=" & Me![activitynoteid]
DoCmd.OpenForm stDocName, , , stLinkCriteria, acFormReadOnly
Exit_ViewActivityNote_Click:
Exit Sub
Err_ViewActivityNote_Click:
MsgBox Err.Description
Resume Exit_ViewActivityNote_Click
End Sub
__________________________________
Option Compare Database
Option Explicit
Public Today As Control, ctldate As Control
Function PopCalendar()
On Error GoTo PopCalendar_Err
Set ctldate = Screen.ActiveControl
DoCmd.OpenForm "FRM - Calendar"
PopCalendar_Exit:
Exit Function
PopCalendar_Err:
MsgBox "Error:" + Error$
Resume PopCalendar_Exit
End Function