Solved

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

Posted on 2004-03-30
3
294 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

937 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

8 Experts available now in Live!

Get 1:1 Help Now