PC Review


Reply
Thread Tools Rate Thread

Cannot use DateSerial function with user defined parameters in an MS Access Query

 
 
New Member
Join Date: Mar 2010
Posts: 1
 
      10th Mar 2010
I have created a simple database in Access 2003


I have a table called tblForms which stores a list of when certain forms were created. It contains a date field called FormDate


I have created a query to find out when a new version of the form is due i.e. 84 days after the current form.


I’ve created a field (called FormDue) in my query which adds 84 days to the date field (called FormDate) using the DateSerial function


I have applied in this query the criteria to provide only a list of projected future dates

Eg all dates between 1 March and 31 March in FormDue



This works fine until I try to change the criteria to user defined parameters

e.g. Between [Enter start date] and [Enter End Date], when it displays all records in the table not just the ones to be selected.


Is there any reason why I can use the user defined parameters on the normal FormDate field but not in the FormDue field created by adding 84 days to the FormDate field?

Many thanks
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Defined Function not allowed in Excel Query of Access DB? Jim Parsells Microsoft Excel Programming 4 8th Oct 2008 04:03 PM
Variable number of parameters in Excel User Defined Function ep Microsoft C# .NET 1 13th Dec 2007 05:33 AM
User Defined Parameters for an Access Pass-Through SQL Query =?Utf-8?B?d25maXNiYQ==?= Microsoft Access 0 19th Jun 2006 05:21 PM
Query with multiple user defined parameters Leo Microsoft Access Queries 1 12th Aug 2004 09:51 AM
Calling user-defined function from a select query in Access 2002 Brian Microsoft Access VBA Modules 2 9th Oct 2003 04:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:57 PM.