473,396 Members | 1,879 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,396 software developers and data experts.

Null Value in form problem <beginner> Please Help!

I have found similar problems to mine on this and other newsgroups but I
still haven't been able to solve my problem...

I have two tables 'Pupil' and 'SEN' which are related on a field called
'UPN' (unique pupil number).

I have a form which is bound to a query that is drawn from both of these
tables and contains Pupil.UPN but not SEN.UPN aswell.

When I update the form I get the error 'The field SEN.UPN cannot contain a
Null value...'

Can anybody give me a hint as to what I need to do to put this right? I'm
tearing my hair out here!

Thanks.
Mark Hanley
Nov 12 '05 #1
4 2019
"Mark Hanley" <mh*****@SpamblocKclara.co.uk> wrote in message
news:10****************@dyke.uk.clara.net...
I have found similar problems to mine on this and other newsgroups but I
still haven't been able to solve my problem...

I have two tables 'Pupil' and 'SEN' which are related on a field called
'UPN' (unique pupil number).

I have a form which is bound to a query that is drawn from both of these
tables and contains Pupil.UPN but not SEN.UPN aswell.

When I update the form I get the error 'The field SEN.UPN cannot contain a
Null value...'

Can anybody give me a hint as to what I need to do to put this right? I'm
tearing my hair out here!

Thanks.
Mark Hanley

You haven't given us much of a clue as to what is contained in the table
SEN, what type of relationship is between the two tables and what is the
purpose of the form in question? Are you trying to add a new record? Do
you expect to be able to add records to both tables from this one form?
Sometimes a form which is based on two tables, is not a logical choice for
making additions - have you considered a form/subform combination?
Fletcher
Nov 12 '05 #2
I am trying to add records to both tables using this one form. The Pupil
table holds general student information such as names etc.. The SEN table
holds further information about a student's educational needs.

I have information from each table separated onto two tabs on one form
except that the UPN from the SEN table (the key on which the two tables are
related) does not appear on the form at all.

There is a 1 to 1 relationship between the two tables.

I hope this fills in the picture a bit. Thanks for helping.
Mark.

"Fletcher Arnold" <fl****@home.com> wrote in message
news:bm**********@titan.btinternet.com...
"Mark Hanley" <mh*****@SpamblocKclara.co.uk> wrote in message
news:10****************@dyke.uk.clara.net...
I have found similar problems to mine on this and other newsgroups but I
still haven't been able to solve my problem...

I have two tables 'Pupil' and 'SEN' which are related on a field called
'UPN' (unique pupil number).

I have a form which is bound to a query that is drawn from both of these
tables and contains Pupil.UPN but not SEN.UPN aswell.

When I update the form I get the error 'The field SEN.UPN cannot contain a Null value...'

Can anybody give me a hint as to what I need to do to put this right? I'm tearing my hair out here!

Thanks.
Mark Hanley

You haven't given us much of a clue as to what is contained in the table
SEN, what type of relationship is between the two tables and what is the
purpose of the form in question? Are you trying to add a new record? Do
you expect to be able to add records to both tables from this one form?
Sometimes a form which is based on two tables, is not a logical choice for
making additions - have you considered a form/subform combination?
Fletcher

Nov 12 '05 #3
Does the defined relationship include Cascade Update Related Fields?
_________________________________________________

"Mark Hanley" <mh*****@SpamblocKclara.co.uk> wrote in message
news:10****************@dyke.uk.clara.net...

I am trying to add records to both tables using this one form. The Pupil
table holds general student information such as names etc.. The SEN table
holds further information about a student's educational needs.

I have information from each table separated onto two tabs on one form
except that the UPN from the SEN table (the key on which the two tables are
related) does not appear on the form at all.

There is a 1 to 1 relationship between the two tables.

I hope this fills in the picture a bit. Thanks for helping.
Mark.
_________________________________________________

"Fletcher Arnold" <fl****@home.com> wrote in message
news:bm**********@titan.btinternet.com...

You haven't given us much of a clue as to what is contained in the table SEN, what type of
relationship is between the two tables and what is the purpose of the form in question?
Are you trying to add a new record? Do you expect to be able to add records to both
tables from this one form? Sometimes a form which is based on two tables, is not a logical
choice for making additions - have you considered a form/subform combination?

Fletcher
_________________________________________________

"Mark Hanley" <mh*****@SpamblocKclara.co.uk> wrote in message
news:10****************@dyke.uk.clara.net...

I have found similar problems to mine on this and other newsgroups but I still haven't
been able to solve my problem...
I have two tables 'Pupil' and 'SEN' which are related on a field called 'UPN' (unique
pupil number). I have a form which is bound to a query that is drawn from both of these
tables and contains Pupil.UPN but not SEN.UPN as well. When I update the form I get the
error 'The field SEN.UPN cannot contain a Null value...'

Can anybody give me a hint as to what I need to do to put this right? I'm tearing my hair
out here!

Thanks. Mark Hanley
Nov 12 '05 #4
"Mark Hanley" <mh*****@SpamblocKclara.co.uk> wrote in message
news:10****************@dyke.uk.clara.net...
I am trying to add records to both tables using this one form. The Pupil
table holds general student information such as names etc.. The SEN table
holds further information about a student's educational needs.

I have information from each table separated onto two tabs on one form
except that the UPN from the SEN table (the key on which the two tables are related) does not appear on the form at all.

There is a 1 to 1 relationship between the two tables.

I hope this fills in the picture a bit. Thanks for helping.
Mark.

"Fletcher Arnold" <fl****@home.com> wrote in message
news:bm**********@titan.btinternet.com...
"Mark Hanley" <mh*****@SpamblocKclara.co.uk> wrote in message
news:10****************@dyke.uk.clara.net...
I have found similar problems to mine on this and other newsgroups but I still haven't been able to solve my problem...

I have two tables 'Pupil' and 'SEN' which are related on a field called 'UPN' (unique pupil number).

I have a form which is bound to a query that is drawn from both of these tables and contains Pupil.UPN but not SEN.UPN aswell.

When I update the form I get the error 'The field SEN.UPN cannot
contain
a Null value...'

Can anybody give me a hint as to what I need to do to put this right? I'm tearing my hair out here!

Thanks.
Mark Hanley

You haven't given us much of a clue as to what is contained in the table
SEN, what type of relationship is between the two tables and what is the
purpose of the form in question? Are you trying to add a new record? Do you expect to be able to add records to both tables from this one form?
Sometimes a form which is based on two tables, is not a logical choice for making additions - have you considered a form/subform combination?
Fletcher

The first suggestion would of course be to put all the student data into one
table - tblStudents. That would solve your problems in one hit. One to one
relationships between tables are really to be used in special
circumstances - perhaps you have implemented user-level security and you
want to hide some sensitive data in one table but let other data be more
visible. Or perhaps you have found a need to use sub-classing.
However I have only found the need to use them once and, by strange
coincidence, this was a database holding student records.

If you really do have a pressing need for this one-to-one relationship, then
by far the easiest way would be to disallow additions in the standard way -
the record selectors at the bottom of the form. Create custom buttons for
this.
Fletcher
Nov 12 '05 #5

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

Similar topics

5
by: Tommy | last post by:
I try to train straight in PHP/HTML. I have many documentations read however unfortunately I didn´t find an answer for my problem : The HTML layout consists of three Frames: Top, Left and Body. ...
4
by: Zeljko Vrba | last post by:
1. Is there any HOW-TO documentation about DB API except PEP 249? 2. How are you supposed to write DB-driver independent code when each driver has its own, possibly different from any other,...
2
by: Stevie D | last post by:
Hi, I am completely new to the BCP utility and fairly new to SQL Server I am learning from a book and I am trying the following example (the server I'm learning on is called contractor and a...
33
by: aaron | last post by:
I have a question in my class.. hoping to get some help I need to create a program that will print firstName middleName lastName then their initials User will input: John Smith Doe Output:...
1
by: garyusenet | last post by:
Hi, I will outline what i'm trying to do here, and would really like to here your suggestions of how I can do it please. I have some code which finds the open internet explorer windows. I...
6
by: chrisknapp | last post by:
I'm learning VB and am making an application where I need a user to be able to choose which folder his files are located in. The folder path chosen will be stored as a string for later use in the...
8
by: jasson118 | last post by:
calculate the power of 2 integers. For example, power(2,3)=8, power(3,2)=9,power(4,0)=1. Not allow use power math function.Two integers are read from input by scanf. The program must produce an...
22
by: subramanian100in | last post by:
Consider the following program #include <limits.h> #include <stddef.h> int main(void) { size_t size; size_t bytes = sizeof(size_t);
6
by: lgerhardx | last post by:
First of all, please forgive my newness to the language. I have had much experience programming...but not in C! :) I am modifying a program designed in LabWindows/CVI, which as far as I can...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.