Link to home
Create AccountLog in
Avatar of JamieBennett
JamieBennettFlag for United States of America

asked on

Microsoft Access 2010 Database

I am finally moving some of my last databases that are huge from Access 97 to Access 2010. Which have worked wonderful all of these years, but it is time to move forward. I have a form that has 6 fields that use the dlookup function in Access 97.

One of the fields looks like this:

=IIf(DateDiff("d",[DateIssued],Now())>14,DLookUp("[Fine3]","qryViolationCodes","[ViolDesc]=[Forms]![frmTicketsTest2]![cViolationDesc]"),0)

I am not understanding on how to write it to work in Access 2010. Can someone tell me how to write this in Access 2010

I might add that I am getting an invalid control error.
SOLUTION
Avatar of peter57r
peter57r
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of aman_vijay
aman_vijay

Avatar of JamieBennett

ASKER

Yes, frmTicketsTest2 is the name of the form and is open.
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
I will scratch this one and try again, I don't remember anything about it asking me either of them. I will try converting first and it that does not work i will try new again and import.

Thank you,,

Jamie