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  

Taking figures from other table



 
 
Thread Tools Display Modes
  #1  
Old March 21st, 2010, 07:57 PM posted to microsoft.public.access.forms
sys_analyst47 via AccessMonster.com
external usenet poster
 
Posts: 11
Default Taking figures from other table

Dear All,

Just a quick query i have a table receiving which contains a serial no,
customer name, product, assigned to & branch.

Now in second table there are couple of more fields. I have a form designed
on both table what i want whatever i filled in table one on lost focus of
serial no i will get the info like cm name, product, assigned to.

i made a query which is taking the data from my 1st table & one change event
of the combo box on my form which is for serial number.

my code on change event Me!Cm_Name = Me!Serial_Number.Column(1)

when i mentioning column(2) or column(3) its not taking figures for other
fields can you please tell me what i am doing wrong & how can i rectify this.


Please define it completely. Appreciate your help

--
Thanks & Regards
Majid Pervaiz
Operations Analyst
Al Hilal Bank, Abu Dhabi, UAE

Message posted via http://www.accessmonster.com

  #2  
Old March 22nd, 2010, 12:11 AM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Taking figures from other table

On Sun, 21 Mar 2010 19:57:45 GMT, "sys_analyst47 via AccessMonster.com"
u58607@uwe wrote:

Dear All,

Just a quick query i have a table receiving which contains a serial no,
customer name, product, assigned to & branch.

Now in second table there are couple of more fields. I have a form designed
on both table what i want whatever i filled in table one on lost focus of
serial no i will get the info like cm name, product, assigned to.

i made a query which is taking the data from my 1st table & one change event
of the combo box on my form which is for serial number.

my code on change event Me!Cm_Name = Me!Serial_Number.Column(1)

when i mentioning column(2) or column(3) its not taking figures for other
fields can you please tell me what i am doing wrong & how can i rectify this.


Please define it completely. Appreciate your help


Are you trying to take the customer name, product, etc. from one table and
*store them* in a different table? If so, DON'T; you're missing the whole
point of relational databases, that you store information once, and once only,
and thereafter use Queries (and other tools such as combo boxes, DLookUps,
etc.) to reference the single entry. The customer name should exist in the
customer table *AND NOPLACE ELSE*.

Am I misunderstanding what you're trying to do?
--

John W. Vinson [MVP]
  #3  
Old March 22nd, 2010, 03:00 PM posted to microsoft.public.access.forms
sys_analyst47 via AccessMonster.com
external usenet poster
 
Posts: 11
Default Taking figures from other table

John W. Vinson wrote:
Dear All,

[quoted text clipped - 14 lines]

Please define it completely. Appreciate your help


Are you trying to take the customer name, product, etc. from one table and
*store them* in a different table? If so, DON'T; you're missing the whole
point of relational databases, that you store information once, and once only,
and thereafter use Queries (and other tools such as combo boxes, DLookUps,
etc.) to reference the single entry. The customer name should exist in the
customer table *AND NOPLACE ELSE*.

Am I misunderstanding what you're trying to do?



Dear John,

I dont want to store information in customer table which has already been
entered against that serial number i just want a serial no should be on
another from just when a user changes that it will take the complete entry
made against that serial no. The issue i was facing is that i was only able
to fetch customer name rest fields were not picking, with the above mentioned
code.

--
Thanks & Regards
Majid Pervaiz
Operations Analyst
Al Hilal Bank, Abu Dhabi, UAE

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/201003/1

  #4  
Old March 22nd, 2010, 03:47 PM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Taking figures from other table

On Mon, 22 Mar 2010 15:00:58 GMT, "sys_analyst47 via AccessMonster.com"
u58607@uwe wrote:

I dont want to store information in customer table which has already been
entered against that serial number i just want a serial no should be on
another from just when a user changes that it will take the complete entry
made against that serial no. The issue i was facing is that i was only able
to fetch customer name rest fields were not picking, with the above mentioned
code.


If you just want to *display* other fields from the combo in textboxes on the
form, be sure that the fields you want to see are included in the combo box's
Row Source query, and that the ColumnCount property is equal to the number of
fields you want to include. Then set the Control Source of textboxes on the
form to

=comboboxname.Column(n)

where n is the zero-based index of the column you want to see.

No code is needed if you just want to see the data, only if you want to store
it.
--

John W. Vinson [MVP]
 




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 01:35 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.