That is a lot clearer and easier to read than the code I have now, so thank you as well. I like this "DateSerial" format for "BeginElig" and "enndate" better also.
SQL for access 2003 if that's what you are asking. Here is a snippet of the code if this helps:
sqlstmt = "SELECT ClaimsBenefits.Dependent, ADACodes.Type, Sum(ClaimsBenefitsDetails.AmtPaid) AS SumOfAmtPaid INTO TmpValues " & _
"FROM (ClaimsBenefits INNER JOIN...
I have a "WHERE" statement as such:
"WHERE (((ClaimsBenefits.DateOfVisit)>= #" & BeginElig & "#))
where BeginElig = "1/1/" & (Format(ClaimDate, "yyyy"))
Is there a way to compare two var within the Where statement? EX: I want to compare BeginElig against another date variable within the WHERE...
It is located in two different code sections,"
I have a list of forms with code behind them. The var in which I am speaking about is used in two different form code behind sections. I don't see where the var was declared for either sections.
The project was already setup before I started working on it and it uses "Option Compare Database" every where, by changing it to Option Explicit what will change?
Hello,
I have 2 questions, I am working on a project in Access 2003 and I can view the code for all of the forms except one. It runs like it is suppose to I just can't view the code for it.
1. Is there anyway to view the code?
I also have an issue with a variable that isn't declared and works...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.