Hey, just wanted to see what you all thought before i totally rebuilt this form. Here is a little info on the problem i am having. I am a new to access so i will try to provide enough information on what is going on.
I have a form that has two date fields and i need to know the difference in days between the two dates. No problem so far, the DateDiff function can easily handle this job... However i named one of my text boxes datediff before i realized the function itself was called datediff. I then went back to the table and changed the name of the text box to DD. Now when i try to code a button to calculate the difference in days this is the error i get.
Microsoft Access cannot find the field datediff referred in your expression.
I then click debug and then click definition and here is what it tells me.
Cannot jump to datediff because it is in the library C:\NameOfDatabase.MDB which is not currently referenced.
The funny thing is i can get the DateDiff function to work on any other Form in my database. Any suggestions?
Thanks
I have a form that has two date fields and i need to know the difference in days between the two dates. No problem so far, the DateDiff function can easily handle this job... However i named one of my text boxes datediff before i realized the function itself was called datediff. I then went back to the table and changed the name of the text box to DD. Now when i try to code a button to calculate the difference in days this is the error i get.
Microsoft Access cannot find the field datediff referred in your expression.
I then click debug and then click definition and here is what it tells me.
Cannot jump to datediff because it is in the library C:\NameOfDatabase.MDB which is not currently referenced.
The funny thing is i can get the DateDiff function to work on any other Form in my database. Any suggestions?
Thanks