Thank you both. The BETWEEN syntax works fine as part of a SQL statement, but in VB6 (using DAO), it doesn't seem to be accepted as part of a Filter.
Anyway, I have resolved it to my satisfaction now, and once again, thanks for your input and thought provoking ideas.
cheers
Phil
User Profile
Collapse
-
Read-only data instead of Updatable records
Hi all,
I am having trouble with DAO (VB6) reading an Access database. I keep getting a "read-only" recordset instead of Updatable one.
the help file suggests that the Jet engine can't create an editable recordset, but I don't know where to look for the error.Code:Set qdfLocal = dbsCurrent.OpenRecordset(myQuery, dbOpenDynaset)
This code works in other parts of the application... -
-
Hi all,
Thanks for the input, but I have created a "work-around" as follows.
many thanks to all who replied.Code:Do While Not rsDiv.EOF If Month(rsDiv!DateIn) > 6 And Year(rsDiv!DateIn) = FY or Month(rsDiv!DateIn) < 7 And Year(rsDiv!DateIn) = FY+1 Then ' do stuff here
cheers
PhilLeave a comment:
-
Thank you gentlemen, but your idea didn't work either. My system date is set to Australia, so I don't usually have to worry about American date.
I agree with Mike about the FilterOn property.
many thanks for your input though.
PhilLeave a comment:
-
filtering on a date field in Access using VB6
Hi all,
I am having trouble with VB6 (running in windows7) talking to an Access database, and was hoping someone
could help me locate the error.
the database contains a "DateIn" field of type "Date" (short Date)
I am reading the table into a recordset called "rsDiv"
I am trying to read only records for the financial year, between [1 Jul (name the year)] to... -
Thanks for the reply.
I have 2 distinct elements. A <Div> called 'ImgBox' where I want the image to rollover, and a table.
I want to be able to mouseover any cell of the 2nd column, which will trigger individual <a href="#" .... </a> links to change the image in the 'ImgBox'
ie. row1, col2 --> Img1
row2, col2 --> Img2 etc.
I only used the alert() because I understood...Leave a comment:
-
Tried that too - did not work. I also tried removing the data from the 'ImgBox' and simply hid it - that worked.Leave a comment:
-
image rollover
I want to "rollover" an image on a mouseover event, but the image is to be displayed in a different location from the mouse. The image will be in ('ImgBox') and the mouse can be in any cell in a specific column of a table -> giving diff. images.
My code follows, but doesn't work. Any help would be appreciated thanks.
...Code:function ShowImage(artImg) { // document.getElementById("ImgBox").src=artImg;Last edited by Dormilich; Jan 15 '12, 11:10 AM. Reason: please use [CODE] [/CODE] tags when posting code
No activity results to display
Show More
Leave a comment: