Solved

how to use temptable as row source for combo box in adp

Posted on 2004-03-30
3
293 Views
Last Modified: 2012-08-14
In an adp project, I create a temp table called #Employee.
I can access the records in this table through code or a stored procedure, but when I try to use it as a rowsource for a combo box, I get the error that the record source doesn't exist for this form or report. I get this error even if I use the Stored Procedure that does return records.

So, is there any to get the records of a temp table into a combobox?
0
Comment
Question by:Mach1pro
3 Comments
 
LVL 11

Expert Comment

by:phileoca
ID: 10715246
Sure. many ways.  Easy solution would be make a Select Query:

TempTableListQuery

With the fields you want from the temp table.   Then on your combo box, set the row source type to table/query and the row source to the query, and select the number of columns, and which column u want the query to be bound to.

KT.
0
 
LVL 6

Author Comment

by:Mach1pro
ID: 10715319
There are no queries in an Access Data Project
0
 
LVL 32

Accepted Solution

by:
jadedata earned 500 total points
ID: 10715953
There are no persistant queries,... but there should be plenty of SQL usage...

Why not use a persistant table, but clear it before use?  Refill it as needed??

Creating and destroying objects is always a messy business in an application.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Familiarize people with the process of utilizing SQL Server functions 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 Ac…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now