J
JohnE
I have a form that has on it a cboFileLetter(textfield), txtFileNo
(numberfield) and a button (there are other controls but not relevent for
this posting). When the button is clicked I need to have txtFileNo fill in
with the next incremental number for the letter that has been selected in
cboFileLetter. The code in the click event that I have so far is;
Me.txtFileNo.Value = Nz(DMax("[FileNo]", "[tbl_Clients]", "FileLetter=" &
Me.cboFileLetter), 0) + 1
This is not working and I get an error 2001 - you canceled the previous
action.
I seek help on this dillemma.
Thanks in advance for the help.
*** John
(numberfield) and a button (there are other controls but not relevent for
this posting). When the button is clicked I need to have txtFileNo fill in
with the next incremental number for the letter that has been selected in
cboFileLetter. The code in the click event that I have so far is;
Me.txtFileNo.Value = Nz(DMax("[FileNo]", "[tbl_Clients]", "FileLetter=" &
Me.cboFileLetter), 0) + 1
This is not working and I get an error 2001 - you canceled the previous
action.
I seek help on this dillemma.
Thanks in advance for the help.
*** John