J
jamccarley
I currently have a button that copies all of the fields into the next record.
It was working, but now it is giving me a "Invalid use of null" error. What
code should I use to allow a null value to be copied? Here is the code I have
so far.
Private Sub Command573_Click()
ctrl4 = [Date Found]
ctrl5 = [PartNo]
ctrl6 = [Area]
ctrl7 = [Line]
ctrl8 = [Hold Area]
ctrl9 = [Process Identifier]
ctrl10 = [Initiated by]
ctrl11 = [Responsible Department]
ctrl12 = [Quality Engineers]
ctrl13 = [Supervisor Notified]
ctrl14 = [Problem]
ctrl15 = [How found]
ctrl16 = [Suspect Range]
ctrl17 = [Root Cause]
ctrl18 = [Comments]
DoCmd.GoToRecord , , acNewRec
[Date Found] = ctrl4
[PartNo] = ctrl5
[Area] = ctrl6
[Line] = ctrl7
[Hold Area] = ctrl8
[Process Identifier] = ctrl9
[Initiated by] = ctrl10
[Responsible Department] = ctrl11
[Quality Engineers] = ctrl12
[Supervisor Notified] = ctrl13
[Problem] = ctrl14
[How found] = ctrl15
[Suspect Range] = ctrl16
[Root Cause] = ctrl17
[Comments] = ctrl18
End Sub
Thank you
Josh
It was working, but now it is giving me a "Invalid use of null" error. What
code should I use to allow a null value to be copied? Here is the code I have
so far.
Private Sub Command573_Click()
ctrl4 = [Date Found]
ctrl5 = [PartNo]
ctrl6 = [Area]
ctrl7 = [Line]
ctrl8 = [Hold Area]
ctrl9 = [Process Identifier]
ctrl10 = [Initiated by]
ctrl11 = [Responsible Department]
ctrl12 = [Quality Engineers]
ctrl13 = [Supervisor Notified]
ctrl14 = [Problem]
ctrl15 = [How found]
ctrl16 = [Suspect Range]
ctrl17 = [Root Cause]
ctrl18 = [Comments]
DoCmd.GoToRecord , , acNewRec
[Date Found] = ctrl4
[PartNo] = ctrl5
[Area] = ctrl6
[Line] = ctrl7
[Hold Area] = ctrl8
[Process Identifier] = ctrl9
[Initiated by] = ctrl10
[Responsible Department] = ctrl11
[Quality Engineers] = ctrl12
[Supervisor Notified] = ctrl13
[Problem] = ctrl14
[How found] = ctrl15
[Suspect Range] = ctrl16
[Root Cause] = ctrl17
[Comments] = ctrl18
End Sub
Thank you
Josh