...'YY")),Sum([AantalVanSchadenummer]) AS [SomVanAantalVanSchadenummer] FROM [QryOverzichtJaar] GROUP BY (Year([Schadedatum])*12 + Month([Schadedatum])-1),(Format([Schadedatum],"MMM 'YY"))
(this rowsource is from the wizard)
I want to use this in VBA, but at the first "...
It indeed doesn't recognise the DAO.database. I downloaded DAO 3.6 and installed it, but don't really know how it works, because he still doesn't recognise the DAO.database...?
...------------------------------------------------------------
Dim db As database
Dim rst As Recordset
Dim query As String
Let query = "SELECT * FROM EXPORT2 WHERE chauffeur = " & Me.KzeI.Column(0) & " and Naam = " & Me.KzeI.Column(1)
Set db = CurrentDb()
Set rst =...
Thx for the reply Dale. It is in Access and in the meantime I've progressed a little bit. I even called Microsoft, but they said it isn't possible (I almost got Bill on the line to ask why it couldn't be done). So it's in Access, I've got a list of values there with the possiblility to select...
I'm wondering how I can base a query on (the rowsource of) a list of values.
I have a list of values and then I want a query with the argument that one field of the query is based upon the values that are also in the list of values and then proceed with the query to do other things.
I hope...
I'm wondering if I can base a query upon the rowsource of a list of values.
I have a list of values and then I want a query with the argument that one field of the query is based upon the values that are also in the list of values and then proceed with the query to do other things.
I hope you...
No, that's not quite what I mean. I want him to search for everything containing 04-2002 when a user only filled in month and year. That's the tricky part...
I have 3 lists of values, containing day, month and year. There are 3 possiblities: choose day and month and year, choose month and year or choose nothing. How do I search in a table for the records? I put them in "Keuzelijst"
I've got this, but it doesn't work properly:
If...
no it still doesn't work.
I solved it like this and it works now, but I still think the other way was good. could there be an error in vba?
If KzeDag.Value <> "" Then
dag = KzeDag.Value
Else: dag = "**"
End If
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.