Dear all
I am using access front end and sql server back end (access project)
this code
- Me.INV_DATE =Date
- Previous_Date=DCount("*","Invoice","[INV_Date]=#"&Me.INV_DATE &"#")
- IfPrevious_Date=0Then
- Me.NUM1 = 1
- Else
- 'existing in the table
- Me.NUM1 =DMax("[NUM1]","INVOICE","[INV_Date]=#"&Me.INV_DATE &"#")+1
- EndIf
this code runs ok in access .mdb
but when i take it in access form in access project .adp
error appears in
in this statement
- Previous_Date=DCount("*","Invoice","[INV_Date]=#"&Me.INV_DATE &"#")
please any idea
best regards