P
Peter
Hi Everyone
I have a database consisting of a number of table. I also
have an input form which consists of main and sub forms.
One of the sub forms relates to one table. If I run the
sub form by itself the dcount statement below works:
inst = DCount("[CC Number]", "CC Table", "[CC Table].[CC
Number]= forms![CC Table]![CC Number]")
I realise it's not good practice to use the same names for
tables and forms but the structure of the statement is
correct and runs when run independently.
However, when it's run as part of the main data entry form
I get a very non descript error that I can're resolve.
I use the inst value to display an on screen message if
it's greater than 1.
Any ideas or suggestions welcome and thank you all in
advance. Peter
I have a database consisting of a number of table. I also
have an input form which consists of main and sub forms.
One of the sub forms relates to one table. If I run the
sub form by itself the dcount statement below works:
inst = DCount("[CC Number]", "CC Table", "[CC Table].[CC
Number]= forms![CC Table]![CC Number]")
I realise it's not good practice to use the same names for
tables and forms but the structure of the statement is
correct and runs when run independently.
However, when it's run as part of the main data entry form
I get a very non descript error that I can're resolve.
I use the inst value to display an on screen message if
it's greater than 1.
Any ideas or suggestions welcome and thank you all in
advance. Peter