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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Good Design?



 
 
Thread Tools Display Modes
  #31  
Old April 9th, 2009, 06:20 PM posted to microsoft.public.access
TraciAnn via AccessMonster.com
external usenet poster
 
Posts: 178
Default Good Design?

Wow! I thought I was going to have to do some code in frmCallDetail like:

Private Sub Form_BeforeInsert(Cancel As Integer)
On Error GoTo Err_Form_BeforeInsert

Me.CallID.Value = Forms.frmCall.txtCallID

Exit_Form_BeforeInsert:
Exit Sub

Err_Form_BeforeInsert:
MsgBox Err.Description
Resume Exit_Form_BeforeInsert
End Sub

I'm glad you guys set me straight!

Clif McIrvin wrote:
In addition to what John said about Master / Child Link fields when you
have the one to many relationship between the two tables (these are
related tables, right?) set to enforce referential integrity the linking
is automatic.

--
Clif

I am fighting against the clock to figure out the record creation
concept for

[quoted text clipped - 11 lines]
Master
Link Field fills in automatically into the child link field.



--
---
TraciAnn

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200904/1

  #32  
Old April 9th, 2009, 07:29 PM posted to microsoft.public.access
Clif McIrvin[_2_]
external usenet poster
 
Posts: 629
Default Good Design?

Yeah -- from personal experience it's really easy to think that I need
to do something that Access / JET already has built-in!

One of the things that took me by surprise when I began to grasp the
potential is the amazing power of Querys [I suspect that's not Access,
but rather a function of SQL and RDBMs.] I'm fairly certain I'm still
"just scratching the surface" of the power of queries.

--
Clif

"TraciAnn via AccessMonster.com" u50702@uwe wrote in message
news:945b1b0ecc838@uwe...
Wow! I thought I was going to have to do some code in frmCallDetail
like:

Private Sub Form_BeforeInsert(Cancel As Integer)
On Error GoTo Err_Form_BeforeInsert

Me.CallID.Value = Forms.frmCall.txtCallID

Exit_Form_BeforeInsert:
Exit Sub

Err_Form_BeforeInsert:
MsgBox Err.Description
Resume Exit_Form_BeforeInsert
End Sub

I'm glad you guys set me straight!

Clif McIrvin wrote:
In addition to what John said about Master / Child Link fields when
you
have the one to many relationship between the two tables (these are
related tables, right?) set to enforce referential integrity the
linking
is automatic.

--
Clif

I am fighting against the clock to figure out the record creation
concept for

[quoted text clipped - 11 lines]
Master
Link Field fills in automatically into the child link field.



--
---
TraciAnn

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200904/1




--
Clif


  #33  
Old April 9th, 2009, 08:02 PM posted to microsoft.public.access
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Good Design?

On Thu, 09 Apr 2009 17:11:54 GMT, "TraciAnn via AccessMonster.com"
u50702@uwe wrote:

Is it REALLY THAT EASY?!!!

I LOVE ACCESS!!!!


chuckle

Glad to be the bearer of good tidings.
--

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 08:17 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.