Mar 9, 2006 #1 din2005 Programmer Joined Mar 22, 2005 Messages 162 Location GB Hi i have a type mismatch on this piece of code strDate = Nz(DMax("Date", "patientevent", "Hospital= '" & Me!Text820 & "'" And EventType = "Entered Waiting List")) can't seem to know whats wrong with it???
Hi i have a type mismatch on this piece of code strDate = Nz(DMax("Date", "patientevent", "Hospital= '" & Me!Text820 & "'" And EventType = "Entered Waiting List")) can't seem to know whats wrong with it???
Mar 9, 2006 1 #2 mp9 Programmer Joined Sep 27, 2002 Messages 1,379 Location GB Try: Code: strDate = Nz(DMax("Date", "patientevent", "Hospital= '" & Me!Text820 & "' And EventType = 'Entered Waiting List'")) http://www22.brinkster.com/accessory/ Upvote 0 Downvote
Try: Code: strDate = Nz(DMax("Date", "patientevent", "Hospital= '" & Me!Text820 & "' And EventType = 'Entered Waiting List'")) http://www22.brinkster.com/accessory/