Solved

MSACCESS 2007 and QBF

Posted on 2010-09-15
2
954 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 500 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
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.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

738 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