Re: Trouble getting a where command to work
- From: "evilcowstare via AccessMonster.com" <u31650@uwe>
- Date: Thu, 12 Apr 2007 15:06:54 GMT
Ok Ill give it a go, thanks very much for your help Joan!!!
Joan Wild wrote:
Well that is your problem; the table design. There is no need to store all
the customer information in the Jobs table. You only need the CustomerID in
the Jobs table. Store information in only one place. In the relationship
window, you would create a relationship between the Customers Table and the
Jobs table - linked on CustomerID.
If you use the Forms Wizard, you can create a main form (based on the
Customer table) with a subform (based on the Jobs table). The wizard also
gives you the option of making the Jobs form a separate form rather than a
subform.
Detailed steps:
Create new Form using Form Wizard
Choose the Customer table; add the fields you want
Choose the Jobs table; add the fields you want
Click Next, and because you've defined a relationship between the two
tables, Access will give you the option of 'subform' or 'linked form'
In case I missed something the second table "jobs" also includes ALL the[quoted text clipped - 32 lines]
fields off the "customers" one inc Name and customer ID.
DoCmd.OpenForm "NameofSecondForm", , , "CustomerID = " & Me.CustomerID
--
Message posted via http://www.accessmonster.com
.
- References:
- Trouble getting a where command to work
- From: evilcowstare via AccessMonster.com
- Re: Trouble getting a where command to work
- From: Joan Wild
- Re: Trouble getting a where command to work
- From: evilcowstare via AccessMonster.com
- Re: Trouble getting a where command to work
- From: Joan Wild
- Re: Trouble getting a where command to work
- From: evilcowstare via AccessMonster.com
- Re: Trouble getting a where command to work
- From: evilcowstare via AccessMonster.com
- Re: Trouble getting a where command to work
- From: Joan Wild
- Trouble getting a where command to work
- Prev by Date: where can i find my tables in form design?
- Next by Date: Re: where can i find my tables in form design?
- Previous by thread: Re: Trouble getting a where command to work
- Next by thread: Re: Value from field in my form not saving to the field in my table
- Index(es):
Relevant Pages
|