PC Review


Reply
Thread Tools Rate Thread

A couple of Newbie Question, getting frustrated!

 
 
Kavy
Guest
Posts: n/a
 
      11th Jul 2008
Hello all, any help is greatly accepted!

The background is, I am trying to make a database where the user only sees
my user forms when he/she loads access. Its going to have many modules, but
the first one is bascially a budget (which could be done in excel but I want
to learn access!).

I have one very quick question - at the bottom

If you bear with me, here is my table - schema and below i will post my
questions!

Job List
Job# (KEY)
Position
Location
Salary
Hourly Pay
Shift Style
Hours Per Day
Boss 1
Boss 2
Other Income
DO#
DO# (optional, RSPS)

Debts and Owing
DO# (KEY)
Translist #
Name
Amount (Total)
S. Date
E. Date
Notes
Amount Paid
Income/ EXP
Paid off?

Transactions
Trans# (KEY)
DO#
Translist #
Notes
Amount
Date

Possible Transact
Translist# (KEY)
Name
Expected?


So those are my tables. Now I was creating blank forms and using basically
VBA to control all my date. I found I can create a form directly from my
table, and it can sort and add recrords to the table much nicer then I had
set up!

My problem is the reletonships, for example.

I add a job to the "job list" table. I need it to create a record in the
debts and owing table to accoutn for this job and I cant get it to do that. I
tried setting a reletonship and no luck!.

Any tips?

 
Reply With Quote
 
 
 
 
a a r o n _ k e m p f
Guest
Posts: n/a
 
      12th Jul 2008
what do you mean, you cannot enter the records?



On Jul 11, 9:21*am, Kavy <K...@discussions.microsoft.com> wrote:
> Hello all, any help is greatly accepted!
>
> The background is, I am trying to make a database where the user only sees
> my user forms when he/she loads access. Its going to have many modules, but
> the first one is bascially a budget (which could be done in excel but I want
> to learn access!). *
>
> I have one very quick question - at the bottom
>
> If you bear with me, here is my table - schema and below i will post my
> questions!
>
> Job List
> Job# (KEY)
> Position
> Location
> Salary
> Hourly Pay
> Shift Style
> Hours Per Day
> Boss 1
> Boss 2
> Other Income
> DO#
> DO# (optional, RSPS)
>
> Debts and Owing
> DO# (KEY)
> Translist #
> Name
> Amount (Total)
> S. Date
> E. Date
> Notes
> Amount Paid
> Income/ EXP
> Paid off?
>
> Transactions
> Trans# (KEY)
> DO#
> Translist #
> Notes
> Amount
> Date
>
> Possible Transact
> Translist# (KEY)
> Name
> Expected?
>
> So those are my tables. Now I was creating blank forms and using basically
> VBA to control all my date. I found I can create a form directly from my
> table, and it can sort and add recrords to the table much nicer then I had
> set up!
>
> My problem is the reletonships, for example.
>
> I add a job to the "job list" table. I need it to create a record in the
> debts and owing table to accoutn for this job and I cant get it to do that. I
> tried setting a reletonship and no luck!.
>
> Any tips?


 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      13th Jul 2008
On Fri, 11 Jul 2008 09:21:01 -0700, Kavy <(E-Mail Removed)>
wrote:

>Hello all, any help is greatly accepted!
>
>The background is, I am trying to make a database where the user only sees
>my user forms when he/she loads access. Its going to have many modules, but
>the first one is bascially a budget (which could be done in excel but I want
>to learn access!).
>
>I have one very quick question - at the bottom
>
>If you bear with me, here is my table - schema and below i will post my
>questions!
>
>Job List
>Job# (KEY)
>Position
>Location
>Salary
>Hourly Pay
>Shift Style
>Hours Per Day
>Boss 1
>Boss 2


If one Job can have multiple Bosses, and (I presume) each Boss may be in
charge of multiple Jobs, then you have a many to many relationship and need a
new table: JobBoss, with fields Job# and BossID.

>Other Income
>DO#
>DO# (optional, RSPS)


Ditto.

>Debts and Owing
>DO# (KEY)
>Translist #
>Name


Name is a reserved word and should not be used as the Name of a field.

>Amount (Total)
>S. Date
>E. Date
>Notes
>Amount Paid
>Income/ EXP
>Paid off?
>
>Transactions
>Trans# (KEY)
>DO#
>Translist #
>Notes
>Amount
>Date


Ditto for Date. Bad fieldname.

>Possible Transact
>Translist# (KEY)
>Name
>Expected?


Special characters - e.g. blank, #, (, ) - are (just barely) legal in
fieldnames but they should be avoided.

>
>So those are my tables. Now I was creating blank forms and using basically
>VBA to control all my date.


Ummm... do you have some reason for learning to swim in the deep end of the
pool? Sure, you can use unbound forms and VBA; it's VASTLY more difficult than
using bound forms. Perhaps you have a good reason to do so but it would help
if you would clarify what that reason is.

>I found I can create a form directly from my
>table, and it can sort and add recrords to the table much nicer then I had
>set up!
>
>My problem is the reletonships, for example.
>
>I add a job to the "job list" table. I need it to create a record in the
>debts and owing table to accoutn for this job and I cant get it to do that. I
>tried setting a reletonship and no luck!.
>
>Any tips?


Setting a relationship *PREVENTS* the addition of invalid data. It does not
automagically create new records in the child table when you create a record
in the parent table. Normally one would use a Form bound to the "one" side
table with a Subform bound to the "many" side table, using the linking field
as the master/child link field. For whatever reason you have chosen not to use
Access forms in their normal manner; by that choice, you must use VBA code on
a Recordset to manually create the child record when there is data to put into
it.

It really looks like you're going to some lengths to make your job more
difficult than it already is!

--

John W. Vinson [MVP]
 
Reply With Quote
 
Kavy
Guest
Posts: n/a
 
      17th Jul 2008
Yes thank you, I see that now. I am much better with VBA then access, so I am
doing thnigs the hard way.

"John W. Vinson" wrote:

> On Fri, 11 Jul 2008 09:21:01 -0700, Kavy <(E-Mail Removed)>
> wrote:
>
> >Hello all, any help is greatly accepted!
> >
> >The background is, I am trying to make a database where the user only sees
> >my user forms when he/she loads access. Its going to have many modules, but
> >the first one is bascially a budget (which could be done in excel but I want
> >to learn access!).
> >
> >I have one very quick question - at the bottom
> >
> >If you bear with me, here is my table - schema and below i will post my
> >questions!
> >
> >Job List
> >Job# (KEY)
> >Position
> >Location
> >Salary
> >Hourly Pay
> >Shift Style
> >Hours Per Day
> >Boss 1
> >Boss 2

>
> If one Job can have multiple Bosses, and (I presume) each Boss may be in
> charge of multiple Jobs, then you have a many to many relationship and need a
> new table: JobBoss, with fields Job# and BossID.
>
> >Other Income
> >DO#
> >DO# (optional, RSPS)

>
> Ditto.
>
> >Debts and Owing
> >DO# (KEY)
> >Translist #
> >Name

>
> Name is a reserved word and should not be used as the Name of a field.
>
> >Amount (Total)
> >S. Date
> >E. Date
> >Notes
> >Amount Paid
> >Income/ EXP
> >Paid off?
> >
> >Transactions
> >Trans# (KEY)
> >DO#
> >Translist #
> >Notes
> >Amount
> >Date

>
> Ditto for Date. Bad fieldname.
>
> >Possible Transact
> >Translist# (KEY)
> >Name
> >Expected?

>
> Special characters - e.g. blank, #, (, ) - are (just barely) legal in
> fieldnames but they should be avoided.
>
> >
> >So those are my tables. Now I was creating blank forms and using basically
> >VBA to control all my date.

>
> Ummm... do you have some reason for learning to swim in the deep end of the
> pool? Sure, you can use unbound forms and VBA; it's VASTLY more difficult than
> using bound forms. Perhaps you have a good reason to do so but it would help
> if you would clarify what that reason is.
>
> >I found I can create a form directly from my
> >table, and it can sort and add recrords to the table much nicer then I had
> >set up!
> >
> >My problem is the reletonships, for example.
> >
> >I add a job to the "job list" table. I need it to create a record in the
> >debts and owing table to accoutn for this job and I cant get it to do that. I
> >tried setting a reletonship and no luck!.
> >
> >Any tips?

>
> Setting a relationship *PREVENTS* the addition of invalid data. It does not
> automagically create new records in the child table when you create a record
> in the parent table. Normally one would use a Form bound to the "one" side
> table with a Subform bound to the "many" side table, using the linking field
> as the master/child link field. For whatever reason you have chosen not to use
> Access forms in their normal manner; by that choice, you must use VBA code on
> a Recordset to manually create the child record when there is data to put into
> it.
>
> It really looks like you're going to some lengths to make your job more
> difficult than it already is!
>
> --
>
> John W. Vinson [MVP]
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A couple of newbie questions about charting Matt Beckwith Microsoft Excel Discussion 3 15th Dec 2005 04:14 PM
Newbie - fill a field in new form? Plus a couple of more... Ohaya Microsoft Access Form Coding 1 9th Apr 2004 04:56 PM
Couple of newbie questions... Carlo Razzeto Microsoft C# .NET 2 8th Feb 2004 08:07 AM
Help ! a couple of newbie questions =?Utf-8?B?S2V2aW4gU21pdGg=?= Microsoft Excel New Users 4 28th Jan 2004 08:41 AM
Re: A couple of newbie VC++ questions (project references and CLR) Niall Microsoft VC .NET 0 19th Aug 2003 11:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:50 PM.