Re: A couple of Newbie Question, getting frustrated!



On Fri, 11 Jul 2008 09:21:01 -0700, Kavy <Kavy@xxxxxxxxxxxxxxxxxxxxxxxxx>
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]
.



Relevant Pages

  • RE: How to code without using VB in access scripting
    ... to be limited to the expertise of the owner or boss? ... You will find that most experts don't use macros other than ... have never heard of a company that forbids VBA. ...
    (microsoft.public.access.modulesdaovba)
  • RE: Automatically cycle through a list of Parameters
    ... This sounds like a good idea but for a different reason. ... cumulative batch file based on the transactions previously reffered to. ... reports and I always use the same parameters. ... I would like to find a way to this in VBA. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Excel Sumproduct
    ... Why do you want VBA, ... is the reason for the holiday, is it Vacation leave, illness etc. ... so i want to plot the dates based on NAME and whereabout... ... Mikel Jan 1 Jan 4 Illness ...
    (microsoft.public.excel.misc)
  • Re: A couple of Newbie Question, getting frustrated!
    ... "John W. Vinson" wrote: ... VBA to control all my date. ... Perhaps you have a good reason to do so but it would help ...
    (microsoft.public.access.forms)
  • Re: FTP DOWNLOAD QUESTION
    ... Try renaming the file on the PC to xxx.TXT ... Subject: FTP DOWNLOAD QUESTION ... VBA ... The reason why I am doing this is to send the job output to a software provider.  Can I prevent the "wrap around" or it is one of those things I have to live with? ...
    (bit.listserv.ibm-main)