A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Help! Access Subform Question



 
 
Thread Tools Display Modes
  #1  
Old September 23rd, 2004, 09:47 PM
Kristen
external usenet poster
 
Posts: n/a
Default Help! Access Subform Question

Help! I posted my question, but I haven't received a
response yet. My question is posted as "Automatically
Updating a Field in a Subform." Does anyone have any
suggestions? Or do you need more information from me?
Question is below.
____________________________________

I have a form F_BidTracker and a subform on that form
called FS_BidGCs which is in datasheet view.

There are fields on the subform called GCContact, and
GCPhone. I want GCPhone to automatically fill in when I
pick the GCContact from a list.

Two ways I have tried, but don't exactly work a

1) setting the control source of GCPhone to "=Forms!
F_BidTracker!FS_BidGCs.Form!GCContact.Column(2)"

2) Making a macro that sets GCPhone to "Forms!F_BidTracker!
FS_BidGCs.Form!GCContact.Column(2)" on the AfterUpdate
Event of GCContact.

Okay, both of these options work and pull up the phone
number, HOWEVER, it if you are on the first record, it
sets this phone number for the current record in the
datasheet and the one below it (which hasn't even been
created yet). If I go to the next record and select a new
GCContact, it resets the record above's phone, the current
record's phone, and the record below's phone.

Do you know of a way where it will just set the phone for
the current record?

If you could tell me how to do it with macros or property
settings that would be great, becasue I don't understand
VB.

Thank you in advance.
..


  #2  
Old September 24th, 2004, 01:32 AM
Van T. Dinh
external usenet poster
 
Posts: n/a
Default

That's is the normal behaviour or Unbound / Calculated Control. The many
instances of this Control will show the same value calculated from the
values of the *CurrentRecord* (on the Subform).

The only way to show different values in the many instances of the Control
in the Subform is to bind it to a Field in the SubForm's RecordSource.
Thus, in your case, you will have to include the PhoneNo Field in the
Subform's RecordSource.

I am not sure which Access version you are using but in one instance in A2K2
I experienced, the many instances of a Calculated Control actually show
different and correct values. However, the major problem is that I couldn't
exit from Access cleanly. Even thought nothing appears on screen,
MSAccess.exe is still in the memory and wouldn't release about 24 MB of
memory until reboot.

--
HTH
Van T. Dinh
MVP (Access)


"Kristen" wrote in message
...
Help! I posted my question, but I haven't received a
response yet. My question is posted as "Automatically
Updating a Field in a Subform." Does anyone have any
suggestions? Or do you need more information from me?
Question is below.
____________________________________

I have a form F_BidTracker and a subform on that form
called FS_BidGCs which is in datasheet view.

There are fields on the subform called GCContact, and
GCPhone. I want GCPhone to automatically fill in when I
pick the GCContact from a list.

Two ways I have tried, but don't exactly work a

1) setting the control source of GCPhone to "=Forms!
F_BidTracker!FS_BidGCs.Form!GCContact.Column(2)"

2) Making a macro that sets GCPhone to "Forms!F_BidTracker!
FS_BidGCs.Form!GCContact.Column(2)" on the AfterUpdate
Event of GCContact.

Okay, both of these options work and pull up the phone
number, HOWEVER, it if you are on the first record, it
sets this phone number for the current record in the
datasheet and the one below it (which hasn't even been
created yet). If I go to the next record and select a new
GCContact, it resets the record above's phone, the current
record's phone, and the record below's phone.

Do you know of a way where it will just set the phone for
the current record?

If you could tell me how to do it with macros or property
settings that would be great, becasue I don't understand
VB.

Thank you in advance.
.




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Images in a database Franz General Discussion 10 October 7th, 2004 09:35 AM
Master form - subform question *** Jack *** General Discussion 2 August 7th, 2004 01:48 AM
Subform Question bdehning General Discussion 3 August 6th, 2004 08:21 AM
Useless Access 2003 tired, angry, sucidial and bored General Discussion 10 July 21st, 2004 11:52 PM
You do not have exclusive access... ERROR Robin General Discussion 1 July 6th, 2004 01:18 AM


All times are GMT +1. The time now is 01:05 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.