I have a database for project management, with a table for the project itself, and a table to record the activities, with multiple dates for each activity. My problem is that I need to pick one of the dates for a specific activity to display in a report field, then another date for a specific activity in another report field.
I'm thinking the best way to do this is to use a query to isolate the specific dates, and have been struggling with the dlookup. When I add a field to my query that asks for dtmCompleteDate only for the record that contains a txtTaskDesc with the value "aewalk" it gives a value of 5.1150895140665E. If I then add the format function to convert it to a date it gives me a date but the date is totally off, and every row produced in the query gives the same date value even though the values in the table are different.
I am thinking now that I might need to create a function for each of these required report dates that isolates those specific dates, and use the functions to produce the query that I use for my report(s) data.
The dlookup I am using is
DelivDate: DLookUp([dtmDeliverDate],"tblChangeOrder",[txtTaskDesc]="aewalk"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
I am using Access2002 at work, and 2000 at home, but I don't think that should matter. Unfortunately the only book I have is '97, and that doesn't help at all in building the function in creating a recordset.
Any help or suggestions are appreciated. Why is my dlookup converting the date (I am using short date in the table)?
I'm thinking the best way to do this is to use a query to isolate the specific dates, and have been struggling with the dlookup. When I add a field to my query that asks for dtmCompleteDate only for the record that contains a txtTaskDesc with the value "aewalk" it gives a value of 5.1150895140665E. If I then add the format function to convert it to a date it gives me a date but the date is totally off, and every row produced in the query gives the same date value even though the values in the table are different.
I am thinking now that I might need to create a function for each of these required report dates that isolates those specific dates, and use the functions to produce the query that I use for my report(s) data.
The dlookup I am using is
DelivDate: DLookUp([dtmDeliverDate],"tblChangeOrder",[txtTaskDesc]="aewalk"
I am using Access2002 at work, and 2000 at home, but I don't think that should matter. Unfortunately the only book I have is '97, and that doesn't help at all in building the function in creating a recordset.
Any help or suggestions are appreciated. Why is my dlookup converting the date (I am using short date in the table)?