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  

Show Data from another Form



 
 
Thread Tools Display Modes
  #1  
Old March 23rd, 2010, 01:48 PM posted to microsoft.public.access.forms
esee
external usenet poster
 
Posts: 14
Default Show Data from another Form

I have two Forms (and Tables): BankProfile Form, and Addresses Form.
The Addresses Form has a two digit State Code in it.

When I show the BankProfile Form, I would like to show the State Code
from Addresses.

I don't know how to do this. Is the control on BankProfile Unbound,
or bound to what?

I have a combo box with the following SQL view, but I don't want to
select a value, I want it to fill in automatically.

SELECT tblAddresses.AddrID, tblAddresses.State, tblAddresses.BankID
FROM tblBanks INNER JOIN tblAddresses ON tblBanks.BankID =
tblAddresses.BankID
WHERE (((tblAddresses.BankID)=[Forms]![BankProfile]![BankID]));

Thanks for you suggestions...
  #2  
Old March 23rd, 2010, 05:14 PM posted to microsoft.public.access.forms
Daryl S[_2_]
external usenet poster
 
Posts: 881
Default Show Data from another Form

esee -

You can have an unbound text box on your BankProfile Form, and put this in
it (assuming BankID is the name of a control on your BankProfile form that
has the bankid in it - adjust as needed):

=DLookup("State","tblAddresses","[BankID] = " & Me.BankID)

If BankID is a text field (rather than numeric, use this:

=DLookup("State","tblAddresses","[BankID] = '" & Me.BankID & "'")


--
Daryl S


"esee" wrote:

I have two Forms (and Tables): BankProfile Form, and Addresses Form.
The Addresses Form has a two digit State Code in it.

When I show the BankProfile Form, I would like to show the State Code
from Addresses.

I don't know how to do this. Is the control on BankProfile Unbound,
or bound to what?

I have a combo box with the following SQL view, but I don't want to
select a value, I want it to fill in automatically.

SELECT tblAddresses.AddrID, tblAddresses.State, tblAddresses.BankID
FROM tblBanks INNER JOIN tblAddresses ON tblBanks.BankID =
tblAddresses.BankID
WHERE (((tblAddresses.BankID)=[Forms]![BankProfile]![BankID]));

Thanks for you suggestions...
.

  #3  
Old March 23rd, 2010, 05:17 PM posted to microsoft.public.access.forms
esee
external usenet poster
 
Posts: 14
Default Show Data from another Form

On Mar 23, 11:14*am, Daryl S wrote:
esee -

You can have an unbound text box on your BankProfile Form, and put this in
it (assuming BankID is the name of a control on your BankProfile form that
has the bankid in it - adjust as needed):

=DLookup("State","tblAddresses","[BankID] = " & Me.BankID)

If BankID is a text field (rather than numeric, use this:

=DLookup("State","tblAddresses","[BankID] = '" & Me.BankID & "'")

--
Daryl S

"esee" wrote:
I have two Forms (and Tables): BankProfile Form, and Addresses Form.
The Addresses Form has a two digit State Code in it.


When I show the BankProfile Form, I would like to show the State Code
from Addresses.


I don't know how to do this. *Is the control on BankProfile Unbound,
or bound to what?


I have a combo box with the following SQL view, but I don't want to
select a value, I want it to fill in automatically.


SELECT tblAddresses.AddrID, tblAddresses.State, tblAddresses.BankID
FROM tblBanks INNER JOIN tblAddresses ON tblBanks.BankID =
tblAddresses.BankID
WHERE (((tblAddresses.BankID)=[Forms]![BankProfile]![BankID]));


Thanks for you suggestions...
.


Yes Sir, that's it. Thank you...
 




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


All times are GMT +1. The time now is 02:25 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.