Sign Up |  Live StatsLive Stats    Articles 35,345| Comments 159,792| Members 17,821, Newest cdotkhn| Online 267
Home Contact
 (Forgotten?): 
    Sikhism

   
                                                                     Your Banner Here!    

Update a table

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 400 USD, Received: 35 USD (9%)
Please Donate...
Related Topics...
Thread Thread Starter Forum Replies Last Post
Update fields in table Tony Williams Information Technology 7 28-Jul-2006 08:31 AM
Update table in access Carol Information Technology 6 28-Jul-2006 08:22 AM
Update linked table Peter Neumaier Information Technology 12 28-Jul-2006 08:10 AM
SQL UPDATE table ... fth Information Technology 0 28-Jul-2006 08:07 AM


Tags
update, table
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:01 AM
lemonhead's Avatar lemonhead
Guest
 
Posts: n/a
   
   
Update a table

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
My table is not updating with the information from my form. What am I
missing? I have a combo box where a user selects a doll. Once the doll is
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/9346-update-a-table.html
selected, a text box displays the doll's number from a query. The doll's
number is not updating to the table. Help!

*








 
Do share your immediate thoughts or reactions on this issue? We value your views! Login Now! or Sign Up Today! to share your views with us.. Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:01 AM
John Vinson's Avatar John Vinson
Guest
 
Posts: n/a
   
   
Re: Update a table

On Wed, 10 May 2006 11:23:02 -0700, lemonhead
wrote:

>My table is not updating with the information from my form. What am I
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9346
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9346
>missing? I have a combo box where a user selects a doll. Once the doll is
>selected, a text box displays the doll's number from a query. The doll's
>number is not updating to the table. Help!


Bear in mind: You can see your form, and you know what's in your
database. We do not.

What is the Recordsource property of the form? What is the Control
Source of this combo box? What is the Control Source of the textbox?
What do you expect to be updated, where?

John W. Vinson[MVP]
Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:01 AM
schasteen's Avatar schasteen
Guest
 
Posts: n/a
   
   
RE: Update a table

Make sure the textbox control source is set to the appropriate field of you
table. This assumes the forms record source is set to the table or a query.

"lemonhead" wrote:

> My table is not updating with the information from my form. What am I
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9346
> missing? I have a combo box where a user selects a doll. Once the doll is
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9346
> selected, a text box displays the doll's number from a query. The doll's
> number is not updating to the table. Help!

Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:01 AM
lemonhead's Avatar lemonhead
Guest
 
Posts: n/a
   
   
Re: Update a table

The record source property of the form is "measurement table"
The control source of the combo box is "dollname1"
The control source of the text box is "=[dollname1].column(1)"
I would like the text box to update to the "measurement table"

"John Vinson" wrote:

> On Wed, 10 May 2006 11:23:02 -0700, lemonhead
> wrote:
>
> >My table is not updating with the information from my form. What am I
> >missing? I have a combo box where a user selects a doll. Once the doll is
> >selected, a text box displays the doll's number from a query. The doll's
> >number is not updating to the table. Help!

>
> Bear in mind: You can see your form, and you know what's in your
> database. We do not.
>
> What is the Recordsource property of the form? What is the Control
> Source of this combo box? What is the Control Source of the textbox?
> What do you expect to be updated, where?
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9346
>
> John W. Vinson[MVP]
>

Reply With Quote
  #5 (permalink)  
Old 28-Jul-2006, 08:02 AM
John Vinson's Avatar John Vinson
Guest
 
Posts: n/a
   
   
Re: Update a table

On Wed, 10 May 2006 14:12:02 -0700, lemonhead
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9346
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9346
wrote:

>The record source property of the form is "measurement table"
>The control source of the combo box is "dollname1"
>The control source of the text box is "=[dollname1].column(1)"
>I would like the text box to update to the "measurement table"


Why?

There is NO point to storing this information redundantly in a second
table. If you have the doll name in the Dolls table, and the doll ID
(the bound column) of the combo box in the Measurement table, you can
always do a Query joining the two tables to display the name.

Where is the doll name coming from? Why is there a field named
dollname1 - that makes me very concerned that there are fields
dollname2 and dollname3, a violation of normal form; are there?


John W. Vinson[MVP]

Reply With Quote
  #6 (permalink)  
Old 28-Jul-2006, 08:02 AM
lemonhead's Avatar lemonhead
Guest
 
Posts: n/a
   
   
Re: Update a table

You raise an interesting point of view. Yes, there is dollname2-dollname12.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9346
This is for a show where there are many entries. The user inputs other data
such as size, style, etc. All of the user data is stored in the table. What
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9346
I need is to print a report of all of this information to include the doll
name and number. I may have erroneously thought that if the table wasn't
updating, then the report wouldn't print it-which it isn't. The doll name
is coming from the dolls table. Am I going about this the wrong way if its a
violation of normal form?

"John Vinson" wrote:

> On Wed, 10 May 2006 14:12:02 -0700, lemonhead
> wrote:
>
> >The record source property of the form is "measurement table"
> >The control source of the combo box is "dollname1"
> >The control source of the text box is "=[dollname1].column(1)"
> >I would like the text box to update to the "measurement table"

>
> Why?
>
> There is NO point to storing this information redundantly in a second
> table. If you have the doll name in the Dolls table, and the doll ID
> (the bound column) of the combo box in the Measurement table, you can
> always do a Query joining the two tables to display the name.
>
> Where is the doll name coming from? Why is there a field named
> dollname1 - that makes me very concerned that there are fields
> dollname2 and dollname3, a violation of normal form; are there?
>
>
> John W. Vinson[MVP]
>
>

Reply With Quote
  #7 (permalink)  
Old 28-Jul-2006, 08:02 AM
John Vinson's Avatar John Vinson
Guest
 
Posts: n/a
   
   
Re: Update a table

On Thu, 11 May 2006 08:14:02 -0700, lemonhead
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9346
wrote:

>You raise an interesting point of view. Yes, there is dollname2-dollname12.


Then you should consider properly normalizing your tables. If you have
a many (shows? entries?) to many (dolls) relationship, you DON'T
create multiple fields! "Fields are expensive, records are cheap".

Instead, you use Access as a relational database: THREE tables:

Entries
EntryID

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9346

Dolls
DollID
DollName


DollsEntered
EntryID
DollID

If one Entry consists of eight dolls, there would be eight records in
the DollsEntered table, one for each. You'ld display this on a
Subform.

>This is for a show where there are many entries. The user inputs other data
>such as size, style, etc. All of the user data is stored in the table.


You say "the table". Does your database in fact contain ONLY ONE
TABLE? If so, you're not taking advantage of any of the power of
Access!

>What I need is to print a report of all of this information to include the doll
>name and number. I may have erroneously thought that if the table wasn't
>updating, then the report wouldn't print it-which it isn't. The doll name
>is coming from the dolls table. Am I going about this the wrong way if its a
>violation of normal form?


Yes.

For one thing, your assumption that you must have everything in one
table in order to create a Report is a common error - but it *is* an
error. You can, and should, base your Report *ON A QUERY* joining the
tables (plural) which contain the information that you want reported.


John W. Vinson[MVP]
Reply With Quote
  #8 (permalink)  
Old 28-Jul-2006, 08:02 AM
lemonhead's Avatar lemonhead
Guest
 
Posts: n/a
   
   
Re: Update a table

Yes, there are many tables. I have tables for dolls, owners, judges,
measurements, etc.

The measurement table is organized by show. Each show will have up to a
dozen dolls. Each doll has a name, number, and a size. The name is a combo
box which is pulling from a query(doll name/number) which is pulling from the
dolls table. The doll number is pulling from the doll name/number query.
The size is user entered information. Each show requires user entry of
show#, date, etc. Each show is a record in the measurement table. I need to
print a report for a specific show. Let's say there was a show on May 11,
2006. This show had 6 dolls. I need to know what dolls, their numbers and
their sizes were at that show.

If I were to utilize multiple tables for this information, how do I know
what dolls were at each show? If my report pulls the dolls from the dolls
table and the doll's number (also from the dolls table), and the size from
the measurement table, how do I know what dolls were at each show? Wouldn't
that information be stored on the measurement table? Yes, it is necessary to
have the doll's name & number on the report for each show.

I admit that I am having trouble wrapping my mind around the "normalizing
your tables" portion of your response. I am not sure you answered my
question based on the last two comments you made. Please correct me if I am
wrong. Don't give up on me yet. I do appreciate your help and time.

"John Vinson" wrote:

> On Thu, 11 May 2006 08:14:02 -0700, lemonhead
> wrote:
>
> >You raise an interesting point of view. Yes, there is dollname2-dollname12.

>
> Then you should consider properly normalizing your tables. If you have
> a many (shows? entries?) to many (dolls) relationship, you DON'T
> create multiple fields! "Fields are expensive, records are cheap".
>
> Instead, you use Access as a relational database: THREE tables:
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9346
>
> Entries
> EntryID
>
>
> Dolls
> DollID
> DollName
>
>
> DollsEntered
> EntryID
> DollID
>
> If one Entry consists of eight dolls, there would be eight records in
> the DollsEntered table, one for each. You'ld display this on a
> Subform.
>
> >This is for a show where there are many entries. The user inputs other data
> >such as size, style, etc. All of the user data is stored in the table.

>
> You say "the table". Does your database in fact contain ONLY ONE
> TABLE? If so, you're not taking advantage of any of the power of
> Access!
>
> >What I need is to print a report of all of this information to include the doll
> >name and number. I may have erroneously thought that if the table wasn't
> >updating, then the report wouldn't print it-which it isn't. The doll name
> >is coming from the dolls table. Am I going about this the wrong way if its a
> >violation of normal form?

>
> Yes.
>
> For one thing, your assumption that you must have everything in one
> table in order to create a Report is a common error - but it *is* an
> error. You can, and should, base your Report *ON A QUERY* joining the
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9346
> tables (plural) which contain the information that you want reported.
>
>
> John W. Vinson[MVP]
>

Reply With Quote
  #9 (permalink)  
Old 28-Jul-2006, 08:02 AM
John Vinson's Avatar John Vinson
Guest
 
Posts: n/a
   
   
Re: Update a table

  Donate Today!  
On Thu, 11 May 2006 14:23:02 -0700, lemonhead
wrote:

>Yes, there are many tables. I have tables for dolls, owners, judges,
>measurements, etc.
>
>The measurement table is organized by show. Each show will have up to a
>dozen dolls. Each doll has a name, number, and a size. The name is a combo
>box which is pulling from a query(doll name/number) which is pulling from the
>dolls table. The doll number is pulling from the doll name/number query.
>The size is user entered information. Each show requires user entry of
>show#, date, etc. Each show is a record in the measurement table. I need to
>print a report for a specific show. Let's say there was a show on May 11,
>2006. This show had 6 dolls. I need to know what dolls, their numbers and
>their sizes were at that show.
>
>If I were to utilize multiple tables for this information, how do I know
>what dolls were at each show? If my report pulls the dolls from the dolls
>table and the doll's number (also from the dolls table), and the size from
>the measurement table, how do I know what dolls were at each show? Wouldn't
>that information be stored on the measurement table? Yes, it is necessary to
>have the doll's name & number on the report for each show.
>
>I admit that I am having trouble wrapping my mind around the "normalizing
>your tables" portion of your response. I am not sure you answered my
>question based on the last two comments you made. Please correct me if I am
>wrong. Don't give up on me yet. I do appreciate your help and time.


If "Each show will have up to a dozen dolls" and "each doll may appear
in more than one show" then your table design does need to be changed,
as I'm suggesting.

Rather than having twelve fields for each show, you *need another
table* - let's call it DollsInShow.

This table would have (at least) two fields: the show date, or better
the unique ID of the Shows table, to indicate which show this doll is
in; and the DollID to indicate which doll is in this show.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9346

You do NOT need to or want to store the size, the name, or any other
information from the Dolls table in this table, or in the show table.
Instead, you would base your Report on a query joining *all three*
tables. You'ld pick the show date, venue, etc. from the Shows table,
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9346
and the doll name, size, etc. from the Dolls table; only those dolls
actually at this show will be included.

I'm not clear though on what the "measurements" table contains - I may
be wrong in assuming that it's static measurements of the doll. If it
is, then that information should be in the Dolls table; if the doll is
11" long it will stay 11" long whichever show it's in!

John W. Vinson[MVP]
Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Gurbani Jukebox
Listen to Gurbani while surfing SPN!
» Active Discussions
sikhism need urgent advice.......
Today 10:41 AM
8 Replies, 87 Views
sikhism Who is "Mohan"?
Today 08:46 AM
22 Replies, 348 Views
sikhism How important is Matha...
Today 08:12 AM
59 Replies, 1,041 Views
sikhism ਨਾਮਾ
Today 06:37 AM
2 Replies, 53 Views
sikhism Sikh Diamonds Video...
Today 04:23 AM
6 Replies, 120 Views
sikhism Are Creator and Creation...
Today 01:30 AM
44 Replies, 2,837 Views
sikhism Herman Hesse,...
Today 00:54 AM
13 Replies, 230 Views
sikhism On a Scale of Most...
Yesterday 21:42 PM
30 Replies, 1,277 Views
sikhism I became victim by...
Yesterday 19:50 PM
0 Replies, 46 Views
sikhism Sikh Books downloads
Yesterday 15:39 PM
2 Replies, 66 Views
sikhism Salok Sheikh Farid ji...
Yesterday 09:35 AM
0 Replies, 47 Views
sikhism In Punjab, three farmers...
Yesterday 05:36 AM
0 Replies, 49 Views
sikhism Supernatural Sikhs, what...
Yesterday 03:45 AM
19 Replies, 416 Views
sikhism Sukhmani Sahib Astpadi...
26-May-2012 22:57 PM
0 Replies, 51 Views
Do You Think You Are...
26-May-2012 09:59 AM
94 Replies, 8,258 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.2

All times are GMT +6.5. The time now is 10:53 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.51794 seconds with 30 queries