G
Goldar
I am listing a file whose records contain the fields "Item Number" and
"Description". When the program encounters a record that has a blank Item
Number or a blank Description, I want to replace the offending field with the
work "Blank". Here is the code that I have in my Detail section Format event:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Nz(Me![Item Number], "") = "" Or isBlank(Me![Item Number]) Then
Me![Item Number] = "Blank"
End If
If Nz(Me![Description], "") = "" Or isBlank(Me![Description]) Then
Me![Description] = "Blank"
End If
Cancel = False
End Sub
When I encounter a blank field, I get an error on the assignment of the
contstant to the offending field ([Item Number] or [Description]. I also get
the message "You can't assign a value to this object". What am I doing wrong?
Thanks
"Description". When the program encounters a record that has a blank Item
Number or a blank Description, I want to replace the offending field with the
work "Blank". Here is the code that I have in my Detail section Format event:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Nz(Me![Item Number], "") = "" Or isBlank(Me![Item Number]) Then
Me![Item Number] = "Blank"
End If
If Nz(Me![Description], "") = "" Or isBlank(Me![Description]) Then
Me![Description] = "Blank"
End If
Cancel = False
End Sub
When I encounter a blank field, I get an error on the assignment of the
contstant to the offending field ([Item Number] or [Description]. I also get
the message "You can't assign a value to this object". What am I doing wrong?
Thanks