BrazilTechie
Programmer
Hi all:
I need to print a report and stop processing if there are duplicate in my table.
From the code I call a function which will open such report and if there is no data set flag to go on.
When there is data to be displayed (meaning there are duplicates) all is going fine.
The problem is that when there is no data I coded the "cancel = true" on the "nodata" event. That is causing my function not to get any feedback.
The Glob_IntCount is the number of duplicates.
Can you show me the solution for this problem?
This is the function:
Function Check4Dups(Glob_Continue_flag)
DoCmd.OpenReport "rptDuplicatesInTablePhone", acViewPreview
If Glob_IntCount >= 1 Then
Glob_Continue_flag = False
Else
Glob_Continue_flag = True
End If
End Function
Thanks in advance.
BrazilTechie
I need to print a report and stop processing if there are duplicate in my table.
From the code I call a function which will open such report and if there is no data set flag to go on.
When there is data to be displayed (meaning there are duplicates) all is going fine.
The problem is that when there is no data I coded the "cancel = true" on the "nodata" event. That is causing my function not to get any feedback.
The Glob_IntCount is the number of duplicates.
Can you show me the solution for this problem?
This is the function:
Function Check4Dups(Glob_Continue_flag)
DoCmd.OpenReport "rptDuplicatesInTablePhone", acViewPreview
If Glob_IntCount >= 1 Then
Glob_Continue_flag = False
Else
Glob_Continue_flag = True
End If
End Function
Thanks in advance.
BrazilTechie