Sorry, don't have time to look at why it does this at the moment. But try moving your Next and Previous buttons and the Company Name Text Box to the Form Header.
You could amend the previous to read:
Between iif(isnull([Forms]![YourFormName]![YourDateFromField]), Min([Date]),[Forms]![YourFormName]![YourDateFromField]) And iif(isnull([Forms]![YourFormName]![YourDateToField]),max([Date]),[Forms]![YourFormName]![YourDateToField])
This should work as if...
The reason you're getting that error is because you're missing () around the IsNull Statement. Change it to: =IIf (IsNull([facility]), DCount("[ID]","master","IsNull[facility]"), DCount("[ID]","master","[facility] = [txtFacility]"))
In your query on the date field put this in the criteria field:
[Forms]![YourFormName]![YourDateFromField] And [Forms]![YourFormName]![YourDateToField]
I may not understand your question correctly but if you need to add an index to your table...Design your table and add an index to the field to be indexed.
I am presuming this is what you mean, unless you are creating your tables at run time, in which case you may then need to add an index?
If you want to do this using a macro. Create a new macro. Select TransferText. Change the type to Export Delimited and leave the Specification Name blank. Fill in the remaining details as required and it will export the query...
Create a new query: Paste this into the SQL View: SELECT YourTableNameHere.Ref_No, Max(YourTableNameHere.Ref_Date) AS MaxOfRef_Date
FROM YourTableNameHere
GROUP BY YourTableNameHere.Ref_No;
Hope that helps...
Thankyou for your reply. I was trying to avoid doing what you have suggested. I really wanted to know why Access decides to ignore what I have told it to do and do it's own thing.
I have a TEXT field in a table which stores todays date. 30-OCT-2002. It is 11 characters in width.
Please can someone tell me why when I export it as a fixed width file does Access try to add the time, produce an Export Errors table saying the field has been truncated AND change my TEXT...
Presuming you just want to display this in the report and not store the data....
In the Check Box Recordsoure put:
=IIf([due date] >date() or [Invoice Date]+30 >=Date(),True,False)
Hope this helps...
You need a query based on your table. In the criteria of the [Date To Be Removed] field put >Date()
This should give you all records where the [Date To Be Removed] field is greater than todays date.
Then base your report on this query.
Hope this helps.
Datediff("m",FirstDate,SecondDate)
The "m" means you want to know thenumber of months between the two dates. Others are:
yyyy Year
q Quarter
m Month
y Day of year
d Day
w Weekday
ww Week
h Hour
n Minute
s Second
IsNumeric may be able to help you. This will return a True or False value. For example:
IsNumeric("12345")
Would return true
IsNumeric("12 345")
Would return false.