VBA Programming Difficulty

Posted on 2012-09-12
Medium Priority
Last Modified: 2012-09-12
I have a form with 5 muti_list boxes that allow users to create ad-hoc queries.  After a query is run and the form closed, a record in the datatable loses several variables.  Only one record.  Can't figure out what's going on.  My VB code is attached.  Any help would be greatly appreciated.
Question by:hbrown1956
  • 2
LVL 59
ID: 38392465
<<a record in the datatable loses several variables.>>

 What data table? and do you mean field or variables?

 There's nothing wrong with your code as it stands.

LVL 59
ID: 38392474
BTW, what's rst (qry_ALL) used for?

LVL 120

Accepted Solution

Rey Obrero (Capricorn1) earned 1500 total points
ID: 38392502
there is nothing in  the code you posted that will cause a record to lose some data..

investigate further, if there are other codes running that is causing the problem.

you can step through your codes by inserting a  line with Stop command, then hit F8  one at a time to move to your codes line by line

Author Comment

ID: 38392816

qry_all is built on the table that's missing the field...not variable, my mistake.  I was trying to use a recordset to see if it would help.


Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes MS breaks things just for fun... In Access 2003, only the maximum allowable SQL string length could cause problems as you built a recordset. Now, when using string data in a WHERE clause, the 'identifier' maximum is 128 characters. So, …
Audit trails are very important in any system to hold people responsible for certain transactions and hold them to take ownership of their actions. This article is dedicated to all novice "Microsoft Access" developers.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

592 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question