473,621 Members | 2,743 Online
Bytes | Software Development & Data Engineering Community
+ 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 5898
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.gotorecor d 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
3166
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. Tables: (abbreviated) TblDivision DivisionID
2
4703
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 the displayed records I could have multiples of any given policy nbr. What I am hoping I can program is when a user clicks in the approval checkbox(makes it true) I then want to check off the rest of the approval boxes for that Same policy nbr that...
14
8248
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 eighth record be addressed? Thanks, Mark
6
15795
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 to be able to MOVE the records up or down the order. Something like in a WinAmp or MusicMatch Playlist. A little sample code would be much appreciated.
20
10805
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 either an option button plus two text fields or a checkbox plus two text fields Am wanting to save the user entries into an underlying table. Tag property for each option button, check box or text field has the value of the key
3
3921
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 continuous form that displays below. Under the NewButton I have these lines of code: Me.AllowAdditions = True DoCmd.GoToRecord , , acNewRec
13
3439
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 form is based on a link table to sql server. Here is the code: Dim rst As DAO.Recordset Dim InventoryItem As String InventoryItem = "'" & "TextBoxValue" & "'"
1
1591
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 table I only need to add employee key. So if I've entered a record for John Doe who has an employee key of 4. How do I insert the number 4 into my master table? The user selected John Doe in the box.
4
2266
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 needed as some of the records have a lot of text. However, I've needed to apply both a form of filtering system, and a way of re-ordering the form so that it is alphabetical/numerical order, depending on whiching heading is clicked. I have achieved...
0
8213
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8156
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8653
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8306
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5554
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4065
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2587
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 we have to send another system
1
1763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.