C
CyndyG
I have a query named Status. The fields prompt for are Request Status and
Request Date.
On the Request Status field I created a function called Get_Status,when the
macro runs the user is prompt for Open or Closed. THe user makes the
selction needed and eveything works fine.
I decided to do another query for the Request Date field,because I only want
to enter the dates if the status is equal to closed. The date has hours and
minutes included. I want to use >=StartDate and <=EndDate. I have maned the
function for the field Get_CLosedDate,but I don't know how to set the
function up with prompts
using Get_ClosedDate = Input(""). Everything I type is inavlid or saids
invalid datatype.
I wanted to use a function because I use dates often in my queries.
Also the actual field name for the closed date field is dteDateClosed,I use
Request Date: dteDateClosed on the query.
I am also using OutputTo for getting the data to Excel,which works great for
the Status field,but just get headers for the date field because I can't get
it wriiten correctly.
Request Date.
On the Request Status field I created a function called Get_Status,when the
macro runs the user is prompt for Open or Closed. THe user makes the
selction needed and eveything works fine.
I decided to do another query for the Request Date field,because I only want
to enter the dates if the status is equal to closed. The date has hours and
minutes included. I want to use >=StartDate and <=EndDate. I have maned the
function for the field Get_CLosedDate,but I don't know how to set the
function up with prompts
using Get_ClosedDate = Input(""). Everything I type is inavlid or saids
invalid datatype.
I wanted to use a function because I use dates often in my queries.
Also the actual field name for the closed date field is dteDateClosed,I use
Request Date: dteDateClosed on the query.
I am also using OutputTo for getting the data to Excel,which works great for
the Status field,but just get headers for the date field because I can't get
it wriiten correctly.