>I have a form that has on it a cboFileLetter(textfield), txtFileNo
> (numberfield) and a button (there are other controls but not relevent for
[quoted text clipped - 13 lines]
> Thanks in advance for the help.
> *** John
What is the datatype of the FileLetter field in tbl_Clients? If it's text,
you'll need to put quotes around the value you're testing:
Me.txtFileNo.Value = Nz(DMax("[FileNo]", "[tbl_Clients]", "FileLetter='"
& Me.cboFileLetter & "'"), 0) + 1
Carl Rapson
JohnE - 04 Jun 2007 20:29 GMT
Carl, thanks for the reply. It is text and I just realized my error.
Thanks.
> >I have a form that has on it a cboFileLetter(textfield), txtFileNo
> > (numberfield) and a button (there are other controls but not relevent for
[quoted text clipped - 21 lines]
>
> Carl Rapson