Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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 December 14th, 2011, 02:11 PM
Authorized User
 
Join Date: Sep 2010
Posts: 45
Thanks: 12
Thanked 0 Times in 0 Posts
Default Help me in Access

Hello Everyone, please help me on this:

On my Access Form(FRM_FCHD and data source: TBL_FCHD ).In this Form, one part is called Office, and here are the fields: OfficeName(combo box), address(list box), city(list box), state(list box), zip(list box)…..all these info should come from my TBL_Office. On my Form, when I select OfficeName_A, all its related information will be auto pop up in the correct fields, and I did fine in here. Here is my code (example for address):
Private Sub OfficeName_AfterUpdate()
Me.Address.RowSource = "select Address from TBL_Office where officename=" & Chr(34) & Me. OfficeName & Chr(34)
End Sub

My problem is: I want to save all these info into my TBL_FCHD, but only OfficeName is be saved, all its related fields (which were be auto pup up)were not be saved into TBL_FCHD.
Sincerely,
Cindy

Last edited by cindyl; January 9th, 2012 at 08:58 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
401.3 Access denied due to Access Control List cforsyth .NET Framework 2.0 8 May 28th, 2009 01:56 PM
SQL Access/ASP.NET data access issue saeta57 SQL Server ASP 1 July 4th, 2004 04:29 PM
SQL Access/ASP.NET data access issue saeta57 Classic ASP Databases 1 July 4th, 2004 03:32 PM
ADE file in Access 2000 <---> Access XP ginoitalo Access 3 April 14th, 2004 09:06 PM
Access XP VBA compatibility issues w/ Access 2000 bourgeois02 Access VBA 1 August 19th, 2003 04:14 PM





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