?
Solved

MSACCESS 2007 and QBF

Posted on 2010-09-15
2
Medium Priority
?
970 Views
Last Modified: 2012-05-10
I've set up a form, QBF form,  which I base user inquiries from.  In this form I have two fields, orders and lastname.  orders is a textbox and when it is filled in with an order number a macro is called that displays a "results" form,  which is based on a query and subquery.  The Query selects the data by using the input form the original QBF form. This all works just fine.  The 2nd field is a combo box, a bit more tricky apparently,  the combo field is populated by an underlying query into a table in the database.  The item that a user selects is found by using Combo13 or whatever name you give the box .value.  So, I set up the underlying query to refer to the selected value as combo13.value.  However, when I run the form I receive a prompt from the query for combo13.value.  I know that combo13.value has the selected last name at the "before update" event. I displayed, via a msgbox, combo13.value and it contained the value that was selected.  Where am I going wrong? Oh, by the way, I'm using MS/Access 2007
0
Comment
Question by:rhgi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 28

Accepted Solution

by:
omgang earned 2000 total points
ID: 33682646
In the query you need to refer to the fully qualified form control.
[Forms]![TheNameOfTheForm]![Combo13]

Post the SQL of you query
OM Gang
0
 

Author Closing Comment

by:rhgi
ID: 33691680
I forgot the [Forms] part of the qualification.  Thanks for prompting me!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
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…
Suggested Courses

777 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