You can use a technique like this to get the previous value into the current record. From there the math should be easy:
http://www.baldyweb.com/PrevValue.htm
Paul
MS Access MVP 2007/2008
No problem. I know 2007 has built-in PDF capability, but I still use this:
http://www.lebans.com/reporttopdf.htm
I don't know if it's easier than the built-in method, but figured I'd post it here just in case someone needed it.
Paul
MS Access MVP 2007/2008
Did you get this going? If not, this should get you started:
http://www.granite.ab.ca/access/email/reporttomultiplerecipients.htm
Paul
MS Access MVP 2007/2008
Try
WHERE (((ARBill.ARBillDate) Between [Parameter 1] And [Parameter 2])) AND (([ExpensesBilled]-[ExpensesReceived])+([ExpensesAdjusted]))+(([FeesBilled]-[FeesReceived])+([FeesAdjusted]))+(([InterestBilled]-[InterestReceived])+([InterestAdjusted])) <> 0
None of those parentheses are required...
It may help to see the SQL, but I suspect you're running into the fact that the WHERE clause is evaluated before the SELECT clause, so the calculated fields are not known at that point. If you have:
NewField: Field1 + Field2
in SQL view instead of
WHERE NewField <> 0
you'd want
WHERE...
Here's an example of the yes/no message box:
Dim msg As String, button As Variant, title As String, response As Variant
msg = "Vehicle is Shopped - Do you want to dispatch anyway?"
button = vbYesNo + vbDefaultButton2
title = "Vehicle Shopped!"
response = MsgBox(msg, button, title)
If response...
HarleyQuinn, as you know, the original posts were DAO. I only mentioned the ADO thing in case the OP had switched methods somewhere along the line, since I've seen that happen before. Sometimes when someone is searching for a solution, they end up copying and pasting code from different...
Try
...where UCase(trim(AmexCurrent![Cardholder Name])) Like '*" & Tempvar_CCN & "*'")
* is a wildcard for any number of characters, ? is a one character wildcard (but you can use more than one).
Paul
MS Access MVP 2007/2008
..."!" isn't part of the field name, so you don't want that after. You'd also need another single quote after the variable. Try this:
Set tempRecordSet2 = CurrentDb.OpenRecordset("select * from AmexCurrent where UCase(trim([Cardholder Name])) = '" & Tempvar_CCN & "'")
Paul
MS Access MVP...
More info here Duane:
http://www.utteraccess.com/forums/showflat.php?&Board=85&Number=1796615&page=1&view=collapsed&sb=5&o=&fpart=1
Paul
MS Access MVP 2007/2008
The syntax for that would be:
If Forms![NonEmployee Personnel].WelcomeUser = "Whatever" or Forms![NonEmployee Personnel].WelcomeUser = "Whatever2" or Forms![NonEmployee Personnel].WelcomeUser = "Whatever3" Then
But for flexibility I would probably create the table. You could then use a...
That sounds like a known bug. See "combo becomes transparent" near the bottom of the bugs list:
http://allenbrowne.com/Access2007.html#Bugs
Paul
MS Access MVP 2007/2008
In the open event of the form, try
If Forms![NonEmployee Personnel].WelcomeUser = "Whatever" Then
Me.FinancialInfo.Visible = True
Else
Me.FinancialInfo.Visible = False
End If
Paul
MS Access MVP 2007/2008
A brief test showed it to work, though it subtracted a week when the date was a Thursday. In other words, a date of 2/5 returns 1/29 rather than 2/5. Not sure if that's what you want. I would have done this, which is what I tested against:
[MyDate]-Choose(Weekday([MyDate],1),3,4,5,6,0,1,2)...
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.