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

Concensus book for intermediates and help-needed examples



 
 
Thread Tools Display Modes
  #1  
Old June 20th, 2004, 01:47 PM
George
external usenet poster
 
Posts: n/a
Default Concensus book for intermediates and help-needed examples

Hello,

Got that great double set of Developers Handbooks, but as
much as I know about Access I seem to be missing a lot
between basics and that offered in the Handbooks. (Some
examples below.) Is there a consensus on a good Access
book for learning the intermediate things involving a
complex database design (15 to 20 tables and various 1-1,
1-many, many-many relationships)?

Examples of the kind of thing I need to learn:
* On a form, fill city and state fields in Contact table
when a ZIP Code is selected from from ZIPCode table combo
box.

* Limit the number of records in a Configuration table to
one -- editing, but no adding or deleting.

* Have the title on a form be a variable which gets
filled from a field in the Configuration table.

* And sooooo many more things!!!

Thanks,
George
  #2  
Old June 20th, 2004, 02:12 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default Concensus book for intermediates and help-needed examples

Hi George.

Will let others suggest the books, but the examples you ask about can all be
solved with DLookup():
Private Sub Zip_AfterUpdate()
If Not IsNull(Me.Zip) Then
Me.City = DLookup("City", "ZIPCode table", "Zip = """ & Me.Zip &
"""")
End If
End Sub

For basics on how DLookup() works, see:
http://allenbrowne.com/casu-07.html

For suggestions on how to set up a configuration table to retrieve value
from, see:
http://allenbrowne.com/ser-18.html

To create a table that can have only one record, use a Number type for the
primary key, and set this Validation Rule for the field (lower pane in table
design):
[ID] = 1

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"George" wrote in message
...

Got that great double set of Developers Handbooks, but as
much as I know about Access I seem to be missing a lot
between basics and that offered in the Handbooks. (Some
examples below.) Is there a consensus on a good Access
book for learning the intermediate things involving a
complex database design (15 to 20 tables and various 1-1,
1-many, many-many relationships)?

Examples of the kind of thing I need to learn:
* On a form, fill city and state fields in Contact table
when a ZIP Code is selected from from ZIPCode table combo
box.

* Limit the number of records in a Configuration table to
one -- editing, but no adding or deleting.

* Have the title on a form be a variable which gets
filled from a field in the Configuration table.

* And sooooo many more things!!!

Thanks,
George



  #3  
Old June 21st, 2004, 03:33 PM
external usenet poster
 
Posts: n/a
Default Concensus book for intermediates and help-needed examples

Hello Allan,

I want to respond in a timely fashion, though I haven't
been able to get your code to work yet. I get the gist
of what you're suggesting and it's bumped me up a bit in
my understanding of how Access works. So thanks much.

George

-----Original Message-----
Hi George.

Will let others suggest the books, but the examples you

ask about can all be
solved with DLookup():
Private Sub Zip_AfterUpdate()
If Not IsNull(Me.Zip) Then
Me.City = DLookup("City", "ZIPCode table", "Zip

= """ & Me.Zip &
"""")
End If
End Sub

For basics on how DLookup() works, see:
http://allenbrowne.com/casu-07.html

For suggestions on how to set up a configuration table

to retrieve value
from, see:
http://allenbrowne.com/ser-18.html

To create a table that can have only one record, use a

Number type for the
primary key, and set this Validation Rule for the field

(lower pane in table
design):
[ID] = 1

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"George" wrote in

message
...

Got that great double set of Developers Handbooks, but

as
much as I know about Access I seem to be missing a lot
between basics and that offered in the Handbooks.

(Some
examples below.) Is there a consensus on a good Access
book for learning the intermediate things involving a
complex database design (15 to 20 tables and various 1-

1,
1-many, many-many relationships)?

Examples of the kind of thing I need to learn:
* On a form, fill city and state fields in Contact

table
when a ZIP Code is selected from from ZIPCode table

combo
box.

* Limit the number of records in a Configuration table

to
one -- editing, but no adding or deleting.

* Have the title on a form be a variable which gets
filled from a field in the Configuration table.

* And sooooo many more things!!!

Thanks,
George



.

  #4  
Old June 21st, 2004, 08:47 PM
external usenet poster
 
Posts: n/a
Default Concensus book for intermediates and help-needed examples

I setup my Configuration table ID as you suggested and
added the Validation Rule, but wasn't quite satisfied
with the results because it didn't address what the user
would see. So I investigated the form settings and
discovered the Form Selector for the first time! This
was the finishing touch to your suggestion. I disallowed
additions and deletions and removed the navigation bar.
So a user can open the form, make changes to the record
displayed, and and close the form, but never add a new
record.

Yahoo!
  #5  
Old June 22nd, 2004, 01:11 AM
Paul James
external usenet poster
 
Posts: n/a
Default Concensus book for intermediates and help-needed examples

Alan - this information you have shared is wonderful.

I'm able to make great use of the DLookup examples on your website.

Thanks so much.


  #6  
Old June 22nd, 2004, 02:08 AM
Allen Browne
external usenet poster
 
Posts: n/a
Default Concensus book for intermediates and help-needed examples

Thanks. Feedback appreciated.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Paul James" wrote in message
...
Alan - this information you have shared is wonderful.

I'm able to make great use of the DLookup examples on your website.

Thanks so much.



  #7  
Old June 22nd, 2004, 02:08 PM
external usenet poster
 
Posts: n/a
Default Concensus book for intermediates and help-needed examples

Finally got this straightened out. I couldn't get the
coding to work with the Contact ZIP field, but as soon as
I put it with the combo box everything worked.

Yay.

-----Original Message-----
Hi George.

Will let others suggest the books, but the examples you

ask about can all be
solved with DLookup():
Private Sub Zip_AfterUpdate()
If Not IsNull(Me.Zip) Then
Me.City = DLookup("City", "ZIPCode table", "Zip

= """ & Me.Zip &
"""")
End If
End Sub

For basics on how DLookup() works, see:
http://allenbrowne.com/casu-07.html

For suggestions on how to set up a configuration table

to retrieve value
from, see:
http://allenbrowne.com/ser-18.html

To create a table that can have only one record, use a

Number type for the
primary key, and set this Validation Rule for the field

(lower pane in table
design):
[ID] = 1

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"George" wrote in

message
...

Got that great double set of Developers Handbooks, but

as
much as I know about Access I seem to be missing a lot
between basics and that offered in the Handbooks.

(Some
examples below.) Is there a consensus on a good Access
book for learning the intermediate things involving a
complex database design (15 to 20 tables and various 1-

1,
1-many, many-many relationships)?

Examples of the kind of thing I need to learn:
* On a form, fill city and state fields in Contact

table
when a ZIP Code is selected from from ZIPCode table

combo
box.

* Limit the number of records in a Configuration table

to
one -- editing, but no adding or deleting.

* Have the title on a form be a variable which gets
filled from a field in the Configuration table.

* And sooooo many more things!!!

Thanks,
George



.

 




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 05:54 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.