By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,497 Members | 2,113 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,497 IT Pros & Developers. It's quick & easy.

Forms and Reports

P: 2
For starters I am not very familiar with Access or VBA, but I am working on a checklist database for my work.

What I want to do is have a form linked to a table of questions I have. The table of questions has a few fields based on what type of questions they are.

I want to be able to use the form to sort the questions by certain categories then be able to check off which questions you would like in the report.

If you would like some more information let me know, I could even upload what I have currently so you can get an idea of what I'm talking about.
Jul 16 '08 #1
Share this Question
Share on Google+
3 Replies


Expert 100+
P: 374
In response to your comments made, you would need to post what you have so far and ask the question(s) that you need answered. Because we don't have any idea at all what it is that you're trying to do and the exact results that you're looking for, we can't answer anything until you ask the question of what it is that you want.

Post any Table structures/ Queries/ Reports that you already have, and show examples of what you want the result to be.

This would make it a great deal easier to try to solve instead of us just simply taking a wild guess as to what you're question is that you need answered.

Thanks,

Joe P.
Jul 17 '08 #2

P: 2
I figured this would be the case, but at the point I was not exactly sure what direction I was heading I was just speaking in generalities. I do now have a more direct question that could be answered that I have also posted on a newsgroup. Here is my dilemma:

I am working on a multi-select list box for a standard
question checklist database and I am running into a syntax error in
the code that I cannot seem to correct. I will also note that I am
using Allen Browne's multi-select list box for a report as a guide. I
should also note that my access skills are not the best so I may need
some explaining on certain things.

First let me give some background on the database:
I have a query titled Questions By Category that has the following
fields in it
Categories.ID
Standard Questions.SubCategory1
Standard Questions.Question

I played around with the code a little bit to make sure all fields
were changed to match my database, but I am running into a syntax
error 3075 on the following line:

Expand|Select|Wrap|Line Numbers
  1.   strWhere = "[ID] IN (" & Left$(strWhere, lngLen) & ")"
I searched around a little bit on here, but couldn't really find
anything that matched this same problem. If anyone could advise I'd
greatly appreciate it. If any additional information is needed please
do not hesitate to ask.
Jul 17 '08 #3

Expert 100+
P: 374
I figured this would be the case, but at the point I was not exactly sure what direction I was heading I was just speaking in generalities. I do now have a more direct question that could be answered that I have also posted on a newsgroup. Here is my dilemma:

I am working on a multi-select list box for a standard
question checklist database and I am running into a syntax error in
the code that I cannot seem to correct. I will also note that I am
using Allen Browne's multi-select list box for a report as a guide. I
should also note that my access skills are not the best so I may need
some explaining on certain things.

First let me give some background on the database:
I have a query titled Questions By Category that has the following
fields in it
Categories.ID
Standard Questions.SubCategory1
Standard Questions.Question

I played around with the code a little bit to make sure all fields
were changed to match my database, but I am running into a syntax
error 3075 on the following line:

Expand|Select|Wrap|Line Numbers
  1.   strWhere = "[ID] IN (" & Left$(strWhere, lngLen) & ")"
I searched around a little bit on here, but couldn't really find
anything that matched this same problem. If anyone could advise I'd
greatly appreciate it. If any additional information is needed please
do not hesitate to ask.
the correct syntax for that is as follows:

Expand|Select|Wrap|Line Numbers
  1.  strWhere = "[ID] = " & <<Variable that holds the category ID>>
Just make sure that you have a place to keep the variable of the Category ID and replace "<<Variable that holds the Category ID>>" with that variable name.

Example:

Expand|Select|Wrap|Line Numbers
  1. strWhere = "[ID]=" & me.CategoryID
  2.  
If it is a string then the following syntax applies:

Expand|Select|Wrap|Line Numbers
  1.  
  2. strWhere = "[ID] = '" & me.CategoryID & "'"
  3.  
  4.  
Hope that helps,

Joe P.
Jul 18 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.