Hi Guys,
Tom Hughes has a similar thread a couple of weeks back. If you want to create an expirable (or is that to do with breathing..?) field (ie a record within a database) then create the query to be used WITHIN Access and you can then use UD to lift it into the recordset you create. This has a number of benefits, you don't need to create any SQL or filters within the UD window and any queries you set up in Access will be lifted with the recordset as it's executed.
If your page has a radio button set for expiring date after 7, 14 or 21 days for example, use this numerical values in your Access field (ie When you create a new record when the 7 day radio button is clicked, the value of "7" is dumped in a field called "AD_Ex_Date". In Access create a query and drag all your ad table fields across. (You may want to open your Access help file here!) Now you'll have to create a query using the query builder and effectively add the code;
>=Date()AND<=(Date()+[ab_table_name]![AD_Ex_date])
This should pull the value for any advert within the database and display it between the date today and x days hence (where x is 7,14 or 21).
Sorry to go on, but if you spend a little time in Access playing with queries you'll find that they are much more powerful than trying to handcode SQL correctly.
Any probs, call my wife!
Have fun
M