473,463 Members | 1,508 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Adding new record in continuous form appears to produce records

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 with some field populated per defaults for
account and some based on previous records - eg dates
3) Save button clicked
4) Record validated and saved if it passes validation.

I have three issues as follows

1) I am using a subform with a continuous form view. The problem is
that when a new record is added, as soon as default values for fields
are entered, a duplicate record appears which I don't want. I know that
it has something to do with allowadditions but I am confused how to
incorporate this.

2) I also want the new record to appear at the end of the record list
for that account with all the other records showing. I have used the
data entry property, but it sets the focus on the first record and the
user needs to scroll to the end.

3) What is the best way to keep the user on the editted/new record
until they save or cancel?

Thanks in advance.

Aug 30 '06 #1
1 5847
Catriona schreef:
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 with some field populated per defaults for
account and some based on previous records - eg dates
3) Save button clicked
4) Record validated and saved if it passes validation.

I have three issues as follows

1) I am using a subform with a continuous form view. The problem is
that when a new record is added, as soon as default values for fields
are entered, a duplicate record appears which I don't want. I know that
it has something to do with allowadditions but I am confused how to
incorporate this.
Reading this as: as soon as you start entering data in the visible
record, Access displays the next new record below. Hmm... that is pretty
default behavior. Switched off by disallowing additions, but you do want
to enter data in the first place.
2) I also want the new record to appear at the end of the record list
for that account with all the other records showing. I have used the
data entry property, but it sets the focus on the first record and the
user needs to scroll to the end.
Answering these two questions in one. I advise you set AllowAdditions
for this form to False, and have the user enter a new record by means of
a button (which you must wire to insert the new record, and issue a
docmd.gotorecord to it)
3) What is the best way to keep the user on the editted/new record
until they save or cancel?
Um... how about an extra field, presumably a boolean, that defaults to
false; and a table validation rule that states that this field must be
true? You can always cancel the entry by pressing Escape, if that's okay
with you; and if you want to save, use another button, that first puts a
True in our hidden field, and saves the record consequently.

I hope it makes sense! And if it doesn't, be sure to ask.
--
Bas Cost Budde
Holland
Sep 18 '06 #2

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

Similar topics

4
by: Kathy | last post by:
What is the standard technique for handling the fields in the following scenario on a continuous form? Multiple Divisions. Each Division has multiple Buildings. Each Building has a Supervisor. ...
2
by: vulcaned | last post by:
Hi All, Hopefully I explain/ask my question correctly; In Access97 on a continuous form I display records direct from a table. Two displayed fields are policy nbr and a approved checkbox. In...
14
by: Mark | last post by:
How can the instances of a textbox control on an continuous form be addressd? Can a specific instance be addressed? For example, a continuous form has ten records. How can the textbox for the...
6
by: Prakash | last post by:
Hi !! In a Continuous Form with say 10 records, I'd like to have 1 button with an "UP" Arrow & another button with a "DOWN" arrow. By pressing either the Up or the Down Arrow, I'd like the user...
20
by: Robert | last post by:
Need some help to stop me going around in circles on this one.... Have a nested subform (subform2) which simulates a continuous form for the record on the parent subform. Subform2 has rows of...
3
by: ApexData | last post by:
I am using a continuous form for display purposes. Above this form, a single record is displayed so that when the user presses my NewButton they can enter a NewRecord which gets added to the...
13
by: eighthman11 | last post by:
using Access 2003 and sql server version 8.0 Hey everyone. Created a text box where the user types in an Inventory number and it takes them to that inventory number on the contimuous form. The...
1
by: Steve | last post by:
This may be a dumb questions please forgive I have a form that shows a list box that links to a table with 7 employee names The form does not show employee key. When adding record to master...
4
by: Adam Tippelt | last post by:
Situation: I'm using a continuous form to display a lot of information stored in a datasheet. I'm using the form because it allows me to display multiple rows of information per 'record' which is...
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
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
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.