> "iamrdbrown" <iamrdbrown[ at ]discussions.microsoft.com> wrote in message
> news:B031ECF6-E398-42ED-90AD-E6B49C7D005E[ at ]microsoft.com...
> >
> >
> > "Marshall Barton" wrote:
> >
> >> Assuming I understand all that, this is easy to do on a form
> >> in Single view. Use code like this in both the
> >> ShiftChecked1 text box's AfterUpdate and the form's Current
> >> event procedures:
> >>
> >> Me.txtUserID2.Visible = Not IsNull(Me.ShiftChecked1)
> >> Me.DateChecked2.Visible = Not IsNull(Me.ShiftChecked1)
> >> Me.ShiftChecked2.Visible = Not IsNull(Me.ShiftChecked1)
> >>
> >> Use similar code for ShiftChecked2 (or whatever field
> >> indicates appoval completed).
> >>
> >> Note that this would be very difficult to do for a form in
> >> Continuous view and impossible for a form in DataSheet view.
> >
> > I tried this and all of the boxes that should be invisible on the form
> > remained visible/active and usable. I tried the following code and got
> > the
> > same results... no hidden boxes... I plan to hide all boxes except those
> > associated with UserID1 until UserID1 data is complete. I only put in the
> > code for UserID2 boxes just to see if it would work - save some keystrokes
> > until I figure out what is going on...
> >
> > Private Sub Form_Current()
> > Dim txtFKUserID1 As Integer
> > Dim txtDateChecked1 As Date
> > Dim txtShiftChecked1 As String
> > Dim txtFKUserID2 As Integer
> > Dim txtDateChecked2 As Date
> > Dim txtShiftChecked2 As String
> > Dim txtFKUserID3 As Integer
> > Dim txtDateChecked3 As Date
> > Dim txtShiftChecked3 As String
> >
> >
> > If IsNull(txtFKUserID1) Then
> > [frmUnitData_NewRecord]![txtFKUserID2].Visible = False
> > [frmUnitData_NewRecord]![txtDateChecked2].Visible = False
> > [frmUnitData_NewRecord]![txtShiftChecked2].Visible = False
> > End If
> > End Sub
>
> Sounds as though you're using a form in Continuous or DataSheet view.
>
> --
> Doug Steele, Microsoft Access MVP
>
http://I.Am/DougSteele> (no e-mails, please!)
>
No sir, I have it set for Single form, Form view only. I also have it set