473,657 Members | 2,654 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Stop current record from moving to another record

I input data into two textboxes on Form1 which returns three records
into Form2.

I then Print record 2of3 using criteria from Form2.

stLinkCriteria = "[PartNumber]= '" &
Forms![frm_Edit_Comple ted_I&T_Sheet]![txtPartNumber] & "'" & " AND
[MacPacNumber]= '" &
Forms![frm_Edit_Comple ted_I&T_Sheet]![txtMacpacNumber] & "'" & " AND
[DiscSerialNumbe r]= '" &
Forms![frm_Edit_Comple ted_I&T_Sheet]![txtDiskSerailNu mber] & "'"
stDocName = "rpt_Serialized _Wheel_Assy_ReP rint"

DoCmd.OpenRepor t stDocName, acNormal, , stLinkCriteria

All goes well except Form2 always advances to the first record and I
want it to stay on record 2.

What do I have to do?

Thanks, RICK

Nov 13 '05 #1
0 1420

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

Similar topics

2
5311
by: Tony | last post by:
Hello, I am having difficulty in getting the current record of the current form to show after pressing a command button that takes me to another form. The command button takes me to another form that I want to show the record of the previous form I left. The problem is that the form does not show any other record but the current one from the previous form. I want it to open to that current record and it does however I can only view...
2
6472
by: DD | last post by:
Hi I have built some forms and made my own forward and back buttons and removed all the Access default navigation buttons..however now when you come to the last field and tab,, it opens a new record. rather than staying with the same.. I have tried various things and have had no success any help please DD
8
12088
by: Zlatko Matiæ | last post by:
There is a form (single form) and a combobox. I want that current record of the form is adjusted according to selected value in the combobox. Cuurrent record should be the same as the value in the combobox. What is the solution? Thank you in advance.
0
360
by: 2D Rick | last post by:
I input data into two textboxes on Form1 which returns three records into Form2. I then Print record 2of3 using criteria from Form2. stLinkCriteria = "= '" & Forms!! & "'" & " AND = '" & Forms!! & "'" & " AND = '" &
1
2961
by: chfran | last post by:
I have a form (continuous) that show me data from a table (not a query). I can only modify and move between the data of the first record. I cannot move to the 2nd, 3rd, or 85th record, only the first. I don't know if I've turned on something unintentionally or what. Any insights? chfran
9
15399
by: Matt | last post by:
In many places in my application, I have a DataGridView which users can either enter data into or use as a method of navigation in a master/detail form view. I need a method of stopping the user from leaving a row if there is invalid data in it (e.g., a field that cannot be null is). Because there is no Cancel argument on the parameters for the RowLeave event, I can manage to catch the error and throw up a message, but I am unable to stop...
5
6982
by: christianlott1 | last post by:
I admit my form is pretty complex and may need a total overhaul - I have two subforms synchronized on a form through an unbound text box. When I enter a new record in the second subform it used to complain about nulls and then about 'can't repeat an index'. To solve this I wrote code on the main form's subform enter event (I'm surprised I found it. I must have spent an hour trying to program the enter and exit events from the subform...
3
5645
by: jay.meerdink | last post by:
Greetings! I have a simple Windows form for editing. Search results are bound to a bindingsource and shown in a datagrid paired with a datanavigator. The current row's data is displayed in text boxes bound to the same bindingsource. I'd like to present a save / cancel dialog if the user changes the current data and attempts to navigate away from the current record. There's a ColumnChangingEvent on the underlying data object. I check...
10
12692
by: MLH | last post by:
Suppose, in a multi-user environment, you have append query SQL in a VBA procedure that looks like INSERT INTO MyTable... and the next line reads MyVar=DMax("","MyTable... You can never be certain that MyVar will be set to the key-field value that was created when the Append query ran. Now, there are other ways to do it - I know - that will ensure you 'nab' the correct record. But I was wondering
7
4526
by: Neil | last post by:
I have some code in my form's On Current event which changes focus to a particular control. I want the control to remain where it was when the user moved to the new record. But using Screen.ActiveControl or Me.ActiveControl in the OnCurrent event results in the error "the expression you entered requires the control to be in the active window" (2474). How can I determine the control that had the focus before moving to the new record, so...
0
8306
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
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
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
7327
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
6164
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
5632
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
4152
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
4304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1955
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.