Rich_Lovina
02-07-2002, 08:03 PM
In a past posting Raskew gave following for carry data from one record to new record:
If Not IsNull(Me.Section) Then
Me.Section.DefaultValue = "='" & Me.Section & "'"
'For text fields 'Me.Operatorid.DefaultValue = "='" & Me.OperatorID & "'"
'For date fields 'Me.Operatorid.DefaultValue = "=#" & Me.Operatorid & "#"
'For number fields 'Me.Operatorid.DefaultValue = "=" & Me.Operatorid
Me.Section.TabStop = False
Else
Me.Section.TabStop = True
End If
This, for me works better than an On Enter tagging code plus an After_Update, which if then scrolling back thru recently entered records, changes past records thru the pasting code.
However 2 little questions for any Gurus:
1. When using, the pasting previous data is perfect, but when entering new data cursor jumps to 1st vacant field and ignores the tab stop = yes command. Any suggestions ?
2. If text and numbers are in the field, what is the code ?
Appreciate any inputs. Tks
If Not IsNull(Me.Section) Then
Me.Section.DefaultValue = "='" & Me.Section & "'"
'For text fields 'Me.Operatorid.DefaultValue = "='" & Me.OperatorID & "'"
'For date fields 'Me.Operatorid.DefaultValue = "=#" & Me.Operatorid & "#"
'For number fields 'Me.Operatorid.DefaultValue = "=" & Me.Operatorid
Me.Section.TabStop = False
Else
Me.Section.TabStop = True
End If
This, for me works better than an On Enter tagging code plus an After_Update, which if then scrolling back thru recently entered records, changes past records thru the pasting code.
However 2 little questions for any Gurus:
1. When using, the pasting previous data is perfect, but when entering new data cursor jumps to 1st vacant field and ignores the tab stop = yes command. Any suggestions ?
2. If text and numbers are in the field, what is the code ?
Appreciate any inputs. Tks