Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 25th, 2004, 07:17 PM
Registered User
 
Join Date: Nov 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default bind adp form with local database table?

I just started using access recently. My project has access as the front end and SQL server as the back end. Usually I would bind the form to tables/views from the SQL server. I couldn't do that with one form because I have to do some computation on some fields of this table based on the value user selected from a Combo Box. Is it possible to bind the form with a temporary table in the local DB? If so, how? What other alternatives can I use? Thank you!
 
Old November 25th, 2004, 10:54 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

You can still create a separate query for you combo box source and still bind the form the a table

After you have created a form or report, you can modify its source of data to include or exclude one or more fields, columns, tables, or queries (query: A question about the data stored in your tables, or a request to perform an action on the data. A query can bring together data from multiple tables to serve as the source of data for a form, report, or data access page.). Changing the record source will change the contents of the field list (field list: A window that lists all the fields in the underlying record source or database object, except in data access page Design view. In data access page Design view, it lists all the record sources and their fields in the underlying database.).



Jaime E. Maccou
Applications Analyst
 
Old December 1st, 2004, 03:12 PM
Registered User
 
Join Date: Nov 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the reply.
Perhaps I should have explained my situation a bit more. I could not bind the form to a table in SQL server because I cannot display directly the content of a few fields. On the form there is a combo box from which user can select the unit type for Meter Consumption (for example: GJ, lbs for steam meter or ft^3, m^3 for water meter), and the form should refreash when selecting different unit. All meter consumption are stored in the DB with the standard unit. Also the cost column cannot be displayed directly either without some computation with the tax factor columns in the table. Please correct me if I am wrong, I feel that I will have to use a temporary table to load the data and do some manipulation based on the type of meter user select and the unit type user select.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Error ch 19, opening form, adp-file vitmoss2 BOOK: Access 2007 VBA Programmer's Reference ISBN: 978-0-470-04703-3 0 October 4th, 2008 05:09 AM
ADP - continuous form color select records metta4u Access VBA 1 March 13th, 2008 06:42 AM
Set value in .adp form to UDT in SQL Server mantle51 SQL Server 2000 0 August 8th, 2007 11:28 AM
Bind a property to a table field? ParadiseIsle Access 2 November 12th, 2005 07:13 PM
Bind records from the table to a datalist control macupryk General .NET 1 October 13th, 2004 11:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.