473,769 Members | 8,305 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

save record and next record in one button

92 New Member
Hi
How can i put save record and next record in one button.
in my save record i put the calculation of the text boxes. i have a total field that the sum of the other field is in there and it wil be filled when i push the save button. and the sum will go and save in a table. but now the new requirment is that i put save record and next record in one button to be easier for the user.
i was using the next record seperately.
thanks for the help.
Feb 27 '07 #1
2 10330
ADezii
8,834 Recognized Expert Expert
Hi
How can i put save record and next record in one button.
in my save record i put the calculation of the text boxes. i have a total field that the sum of the other field is in there and it wil be filled when i push the save button. and the sum will go and save in a table. but now the new requirment is that i put save record and next record in one button to be easier for the user.
i was using the next record seperately.
thanks for the help.
Expand|Select|Wrap|Line Numbers
  1. 'Save the Record
  2. DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
  3. 'SendKeys "+{ENTER}", True  'will work also
  4.  
  5. 'Go to the Next Record. If on the Last Record,
  6. 'will Add a Record
  7. DoCmd.GoToRecord , , acNext
Feb 27 '07 #2
voroojak
92 New Member
thanks alot
Feb 27 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
4762
by: William Wisnieski | last post by:
Hello Everyone, Access 2000, I have a main unbound form with a bound datasheet subform . The subform is bound to a query that returns records based on criteria in the main form. The user then double clicks a row on the datasheet subform to open yet another form bound to a table . These two forms are linked by the field. So far so good.
2
1749
by: Doslil | last post by:
hi, I have a drop down list on the main form which has a query attached to it.Looks like the record is not moving to the next record,cos when I select the next record from the list it gives an error message "the record could not saved ,it could create a duplicate values in the index,primary key or relationship............".I am also getting this message when I click on the record selectors. Can anyone please give me any tips
27
3958
by: Kim Webb | last post by:
I have a field on a form for project number. I basically want it to be the next available number (ie 06010 then 06011 etc). In the form I create a text box and under control source I put: =!= This does not work I tried:
1
2123
by: Tony Dunn | last post by:
I have inherited another developer's database (Access 2003) and with it a problem I'm struggling with. The problem is this. I have a parent-child form pair, which is populated by a table (the parent) and a query (the child). The two sources are linked by an identical unique number. The table populating the parent uses the number as primary key. The child table has no primary key so it can used one-to-many. Users add data through the form...
1
3731
by: Rameel | last post by:
Friends, I'm probably being more critical with VB.Net Windows application. I have Developed VisualStudio 20005 VB.Net Windows application how willl i be able to save a specific record into my database file throu GUI Save Record button? As i write the comand as foloow but it is not inserting the new record in to the Access Database. Public Function Open_Connection() As Boolean Try Select Case...
2
1411
by: djpaul | last post by:
Hello, I am creating a program to save repair reports from audio/video equipment. But i created also a searchbox wich displays 1 or more records. But how can i get the next record when i press on a button 'next' or 'previous'? This is some of my code: conn = New MySqlConnection Dim Command As New MySqlCommand Dim Data As MySqlDataReader Dim myAdapter As New MySql.Data.MySqlClient.MySqlDataAdapter
1
1804
by: Shane van Heerden | last post by:
Hi, Hope you can assist... My table has two OLE/BLOB fields. 1 x OLE (Photo) and 1 x OLE (Signature). 1. With WebCam, I save my image - "Works Fine": Private Sub Capture_Click() ezVidCap1.SaveDIB "C:\VisitorPhoto.jpg"
5
3504
by: slenish | last post by:
Hello all, What im trying to create is a command button that will go to the next record on a table, but its not quite as easy as it sounds :D What I have is a form where you can pull a record based on the criteria of 3 text boxes. Once you type that in a few other text boxes fill in with the information from the record on the table. Now sometimes there might be duplicate records matching the critera, this is where the button comes...
3
1535
by: Pravs | last post by:
I have a database wherein a lot of fields are updated by my team on a daily basis. When they are working on a lot of rows of same patient and certain fields have to be filled with same data, to save time I have made a Duplicate button. When this button is clicked, certain fields of the next record are auto-filled as duplicate of the last record. I bring the last record using a query "Aging 010109- Query For DLast," which is working fine. I am...
0
9589
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
10219
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...
0
9865
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8876
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3967
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
2
3567
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.