Greetings! I have a small relational db with four tables. The main form has a tab ctrl with 3 imbedded subfrms (one subfrm for each tab). The subfrms have txtboxes that only hold date data. I have built queries to display the date data on reports. Queries are simple - only a DateDiff function to calculate an expiration date (or determine if isnull or "", which is also considered expired by my organization).
The Problem: when the user enters a new record (and saves) but does not place a date in the subfrm, the query does not pick it up. Remember, I need the database to treat null or empty fields as an expired date, so I want it to show up on the query for expired dates.
Here is the dumbfounding part... if the user actually enters data in the subfrm, the query picks it up and the subfrm operates as intended, even if the data is subsequently erased from the fields. It almost seems like the subfrm has to be "activated" somehow to be visible to the query.
I am not an expert by any means, but do have some experience with RDMS, VBA, and C++, but I absolutely just cannot figure out why this behavior is occuring.
I would be indebted for any assistance provided. Product is MS Access 2007. Thanks!
The Problem: when the user enters a new record (and saves) but does not place a date in the subfrm, the query does not pick it up. Remember, I need the database to treat null or empty fields as an expired date, so I want it to show up on the query for expired dates.
Here is the dumbfounding part... if the user actually enters data in the subfrm, the query picks it up and the subfrm operates as intended, even if the data is subsequently erased from the fields. It almost seems like the subfrm has to be "activated" somehow to be visible to the query.
I am not an expert by any means, but do have some experience with RDMS, VBA, and C++, but I absolutely just cannot figure out why this behavior is occuring.
I would be indebted for any assistance provided. Product is MS Access 2007. Thanks!