473,385 Members | 1,944 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Forms and Reports

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
3 1684
PianoMan64
374 Expert 256MB
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
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
PianoMan64
374 Expert 256MB
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

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

Similar topics

0
by: Richard Hollingsworth | last post by:
Hello: We've just switched to using Access 2K as the front end to our SQL Server 2K db. Great. Love it. However, one small problem. The users can see the SQL Server tables and veiws but...
2
by: Jonathan LaRosa | last post by:
Hi all - I'm wondering if anyone has (or knows of) a tool that will allow me to search through VB code, tables, queries, reports, forms, and other objects, for references to all other types of...
2
by: Timppa | last post by:
Hi, I have Access 2000 and now I'm converting .mdb database to .adp and Sql Server 2000. In old .mdb application I have a query which handles msysobjects table (reading forms and reports...
1
by: Nicolae Fieraru | last post by:
Hi All, I am working on an Access 2000 project where it was necessary to rename some fields in a table or to delete some fields and to recreate new ones. Now there are many forms and reports...
1
by: Nicolae Fieraru | last post by:
Hi All, I want to find if there is a different way than the way I am working now. Lets say I have a table, tblCustomers containing address details. I want a report with all the customers from...
19
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
2
by: misscrf | last post by:
I have a search form that is great. I have modified it in such a way, that when search results come up I can bring it back to a useful spot, say an entry form or a report. Here is my lemon (...
2
by: B. L via AccessMonster.com | last post by:
I have a Database with a Simple Switch board and multiple reports and forms. All of a sudden When i go and open up the database it says it can't find my forms or reports, but the tables and quiries...
4
by: sklett | last post by:
I've developed an ERP application that we use internally and works quite well. I receiving more and more requests from users to print various transactions, order forms, search results, etc. I...
1
by: David Grist | last post by:
Problem Description: I have a large form called Reports Menu that lists several reports that can be viewed or printed. Printing works fine. When I click view, the report opens behind the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.