nickadeemus2002
New member
- Local time
- Today, 19:35
- Joined
- May 16, 2003
- Messages
- 6
Hello everyone. I am looking for advice on the best method to catch blank fields in my database. I have several fields that need to be populated with data, but I can not use the 'Required' property for data input. I want to be able to capture the blank field information with VBA code and generate a report that lists all the records that have blank fields, and what those fields are. I was thinking of writing a procedure using the IsNull method. But I was thinking it would be easier to use a routine that uses the If Then method. For example: IF Forms!Customers!State="" Then..... I also have this little function that can find the blank spaces-->
(Function IsBlank(V As Variant) As Boolean
On Error Resume Next
V = "" & V
If Len(V) = 0 Then IsBlank = True
End Function<--
But once the blank fields are found, I don't know how to prepare that data to make it into a report. Is there a better way to do this simple check for blank spaces? Any advice would be appreciated. Thanks
chris
(Function IsBlank(V As Variant) As Boolean
On Error Resume Next
V = "" & V
If Len(V) = 0 Then IsBlank = True
End Function<--
But once the blank fields are found, I don't know how to prepare that data to make it into a report. Is there a better way to do this simple check for blank spaces? Any advice would be appreciated. Thanks
chris