I have this from DevX:
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" _
(ByVal hwnd As Long, ByVal nIndex As Long) As Long
Const GWL_STYLE = (-16)
Const WS_VSCROLL = &H200000
Const WS_HSCROLL = &H100000
Function HasHorizontalScrollbar(ctrl As Control) As...
Hi all
using Ms Access 2000/2003, XP Pro
I need a way to detect wether an Access sub-form is currently displaying a vertical scrollbar.
really would appreciate any ideas - thanks!
Hi MajP
thanks for your reply
interesting code - however sadly I cannot get it working either.
But I think we're closing in on a solution -can anyone help??
thanks for that tb
the code now looks a bit like this ...
mTargetDate = DatePart("m", DateAdd("m", -1, Date))
strsql = "SELECT * FROM tblReferrals WHERE Datepart('m',RefDate) = " & mTargetDate
Set rs = db.OpenRecordset(strsql)
rs.MoveLast
Debug.Print "Previous month total...
thanks for your quick response tb
system date is used to determine current month
the date stored is a full date
I was hoping to SELECT on current month-1 (and subsequently -2,-3 etc) - perhaps using dateserial
p.s watch out for those frisbees
Ideally I need to SELECT only those records that fall in the previous month ....
Here's the relevant code so far ...
'return all recs from previous month
mTargetDate = Format(DateAdd("m", -1, Date), "mmm yyyy")
strsql = "SELECT * FROM tblReferrals"
Set rs =...
Hi all
I have a table of transactions which include a date field.
I need to produce a column chart of the last six monthly total number of transactions.
The chart will ignore current month and start with previous month, then work backwards to previous month etc for six months.
I am using a...
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.