473,386 Members | 2,078 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

adding new record when one field seems required

I have TblRoles and TblRoleTypes. The main reason for RoleTypes is to make
it easier to categorize roles for people and organizations. For example,
RoleType entries include Client roles, Climb Support Roles, Vendors, Media &
Publicity, Info & Training.

In TblRoles, RoleTypes is a FK but set as not required. Still, Access won't
let me save a new record in TblRoles if an ID# for RoleTypes is not entered.
I can fill in the table now by entering the correct ID number for the
RoleType for each new role.

But how will someone else be able to add a new role later? I haven't been
able to make a form that lets me enter a new role.

I tried making a form with roles as the subform, viewing the roles by
roletypes. But it stays with only the first roletype in view, so I can use
the form to add new roles only to that type. Maybe I should just go on
without worrying about this till I start making all the data entry forms?
Nov 12 '05 #1
3 2659
hi cath

option 1 - set up a role type of TBA - To Be Advised - use it as the default

do you have a relationship setup between role-type and roles ??

this could be forcing you to fill role-type

cheers
paul
"Catherine Jo Morgan" <cj******@hemc.net> wrote in message
news:x6********************@hemc.net...
I have TblRoles and TblRoleTypes. The main reason for RoleTypes is to make
it easier to categorize roles for people and organizations. For example,
RoleType entries include Client roles, Climb Support Roles, Vendors, Media & Publicity, Info & Training.

In TblRoles, RoleTypes is a FK but set as not required. Still, Access won't let me save a new record in TblRoles if an ID# for RoleTypes is not entered. I can fill in the table now by entering the correct ID number for the
RoleType for each new role.

But how will someone else be able to add a new role later? I haven't been
able to make a form that lets me enter a new role.

I tried making a form with roles as the subform, viewing the roles by
roletypes. But it stays with only the first roletype in view, so I can use
the form to add new roles only to that type. Maybe I should just go on
without worrying about this till I start making all the data entry forms?

Nov 12 '05 #2
Yes, there's a one to many relationship between role type and role, with
relationship integrity checked. I was reading something today that gave me
the idea that I could just make the "0" stand for some entry in the Role
Type table - like "Not Set Yet" or "None."

Actually, it's OK as is except that I haven't been able to figure out how to
make a form that lets a user select among the role types, then add a new
role. Maybe when I study forms more I'll figure this out. This is really
what worries me. Thanks!
"Kinetic - Paul G" <ki*****@alwaysonline.net.au> wrote in message
news:3f******@alwaysonline.net.au...
hi cath

option 1 - set up a role type of TBA - To Be Advised - use it as the default
do you have a relationship setup between role-type and roles ??

this could be forcing you to fill role-type

cheers
paul
"Catherine Jo Morgan" <cj******@hemc.net> wrote in message
news:x6********************@hemc.net...
I have TblRoles and TblRoleTypes. The main reason for RoleTypes is to make it easier to categorize roles for people and organizations. For example,
RoleType entries include Client roles, Climb Support Roles, Vendors, Media
&
Publicity, Info & Training.

In TblRoles, RoleTypes is a FK but set as not required. Still, Access

won't
let me save a new record in TblRoles if an ID# for RoleTypes is not

entered.
I can fill in the table now by entering the correct ID number for the
RoleType for each new role.

But how will someone else be able to add a new role later? I haven't

been able to make a form that lets me enter a new role.

I tried making a form with roles as the subform, viewing the roles by
roletypes. But it stays with only the first roletype in view, so I can use the form to add new roles only to that type. Maybe I should just go on
without worrying about this till I start making all the data entry forms?


Nov 12 '05 #3
hi cath
your last problem is one I commonly have to "solve" . . except I solved it a
long time ago and now just repeat the method.

I nearly always create records by running an append query using SQL code.
Because most of the records I wish to create belong to some "parent" record
like your role-type. And i have never learnt how to code in SQL. . . I let
MSA query do the hard work. . .

create a query that does what you want it to do then disply the sql view . .
voila . . the code is there . . . copy it to your VBA code area and fiddle
it . . this bit takes a little practice . . it bit can be tricky but once
you understand the basics its quite easy and efficient

if you need an example I can email a form to you

cheers
paul

"Catherine Jo Morgan" <cj******@hemc.net> wrote in message
news:6L********************@hemc.net...
Yes, there's a one to many relationship between role type and role, with
relationship integrity checked. I was reading something today that gave me
the idea that I could just make the "0" stand for some entry in the Role
Type table - like "Not Set Yet" or "None."

Actually, it's OK as is except that I haven't been able to figure out how to make a form that lets a user select among the role types, then add a new
role. Maybe when I study forms more I'll figure this out. This is really
what worries me. Thanks!
"Kinetic - Paul G" <ki*****@alwaysonline.net.au> wrote in message
news:3f******@alwaysonline.net.au...
hi cath

option 1 - set up a role type of TBA - To Be Advised - use it as the

default

do you have a relationship setup between role-type and roles ??

this could be forcing you to fill role-type

cheers
paul
"Catherine Jo Morgan" <cj******@hemc.net> wrote in message
news:x6********************@hemc.net...
I have TblRoles and TblRoleTypes. The main reason for RoleTypes is to make it easier to categorize roles for people and organizations. For example, RoleType entries include Client roles, Climb Support Roles, Vendors, Media
&
Publicity, Info & Training.

In TblRoles, RoleTypes is a FK but set as not required. Still, Access

won't
let me save a new record in TblRoles if an ID# for RoleTypes is not

entered.
I can fill in the table now by entering the correct ID number for the
RoleType for each new role.

But how will someone else be able to add a new role later? I haven't

been able to make a form that lets me enter a new role.

I tried making a form with roles as the subform, viewing the roles by
roletypes. But it stays with only the first roletype in view, so I can use the form to add new roles only to that type. Maybe I should just go on
without worrying about this till I start making all the data entry forms?



Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Sami | last post by:
Please bear with me, and if you answer this question, please do it step by step. I am new at Access, not at all sophisticated. I am using Office XP. This will need to be read in Access for...
2
by: Robin S. | last post by:
This is an "Add product" form. The user will enter a ProductNo (catalog number), select a Product Class (from cascading combo boxes) and then click a button to create the product. When a...
1
by: GGerard | last post by:
Hello I am working with Access 2000 I have two tables joined on a one to many relationship between two fields: Table1:FieldID (one) is joined to Table2:FieldMyID (many) Field Properties...
1
by: K. Davis | last post by:
I need to increment the maximum value of a field of a table by 1 when a form opens a blank record. (e.g. =max(!![trip_number}) so the logic and references are working at the form level. I've...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
9
by: Greg | last post by:
Binding Manager & dataset - won't add record I've got an untyped dataset with controls bound through code. The user can select a question number from a bound combobox, and the question number and...
8
by: shumaker | last post by:
I'm wondering if adding an autonumber primary key will improve the performance of a multiuser access database on a network share. I have a website that lists many tips for improving performance of...
1
by: Catriona | last post by:
I am developing an Access application where users insert bill records for an electricity account by clicking on a new button. The required workflow is 1) New button clicked 2) New record appears...
2
by: dympna | last post by:
Hi can anyone suggest a fix for this... as I am a novice in access. I have created a training table with the following fields Employee Name - joe Training Received - Fork lift Date Received...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.