In Access2000, I have a database which works almost fine. In a form, there is a combobox which determines the result of a query. When I set the combobox value and manually open the query, the correct results are displayed. But ofcourse, manually isn't what I want.
There is also a button on this form which :
1) checks the settings of several controls on the form (a.o. the combobox)
2) according to those settings, generate a pricelist
3) " " , do something with the pricelist (send to monitor, printer, mail, etc)
- The combobox displays the name of a e-mailgroup (sets the value for a condition in the query)
- The query contains an autonr field and a textfield
- The records returned by the query should be ennummerated (?? don't know if this is the word I'm looking
for) the values should be added after the previous value seperated with a ; (to use it for addressing in a mailclient)
Now this last part is where I'm stuck. I keep getting errormessages, for example -- 3061 Too few parameters. Expected 1. --- and I cannot find the explanations of the errornumbers in the helpfile.
In the past (I have posted a similar cry for help before) the references were mentioned as a source of the error, but I found nothing special here. The ones that are checked :
- Visual Basic For Applications
- Microsoft Access 9.0 Object Library
- OLE Automation
- Microsoft DAO 3.6 Object Library
The main problem seems to be that I cannot/don't know how to use a recordset in VBA. Maybe I'm using the wrong declarations? I've checked several documentations for example code but I allways get some error that the code isn't right *sigh*
There is also a button on this form which :
1) checks the settings of several controls on the form (a.o. the combobox)
2) according to those settings, generate a pricelist
3) " " , do something with the pricelist (send to monitor, printer, mail, etc)
- The combobox displays the name of a e-mailgroup (sets the value for a condition in the query)
- The query contains an autonr field and a textfield
- The records returned by the query should be ennummerated (?? don't know if this is the word I'm looking
for) the values should be added after the previous value seperated with a ; (to use it for addressing in a mailclient)
Now this last part is where I'm stuck. I keep getting errormessages, for example -- 3061 Too few parameters. Expected 1. --- and I cannot find the explanations of the errornumbers in the helpfile.
In the past (I have posted a similar cry for help before) the references were mentioned as a source of the error, but I found nothing special here. The ones that are checked :
- Visual Basic For Applications
- Microsoft Access 9.0 Object Library
- OLE Automation
- Microsoft DAO 3.6 Object Library
The main problem seems to be that I cannot/don't know how to use a recordset in VBA. Maybe I'm using the wrong declarations? I've checked several documentations for example code but I allways get some error that the code isn't right *sigh*