Yup, I'm confused. What exactly are you trying to do icemac?Brianwarnock said:Iceman Pm'd me with the text below, as i haven't got time to visit the forum today, I was merely picking up my emails, I hope somebody else can decipher what he is tryng to do.
DateDiff("d",[SEARCH FOR START DATE]![Start Date],[SEARCH FOR END DATE]![End Date])
when SEARCH FOR START DATE = Like "*" & [Forms]![SearchFrm]![Search2] & "*"
and SEARCH FOR END DATE = Like "*" & [Forms]![SearchFrm]![Search2] & "*"
I need this to work so i can count the number of days between my entered start date and my entered end date.
icemac said:the like expression simply searches through you table to find any values that you type into the "search box." So if i type in 01/11/2006 and there are any dates that match this then it will be displayed
Yes. However, what you are wanting to do is store a calculated field. This is an absolute no-no in relational database design. The point is you can always calculate the difference whenever you need it eg in a form, query or report.icemac said:Basically i want to count the number of days between two dates. Thats it. I have a field in my booking table called Count of days and when i type in the two dates "Starts Date" and "End Date", into the fields "Start Date" and "End Date" (also in the booking table), i want the number of days between these two fields to appear in this field. Does that make more sense?