473,809 Members | 2,625 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Go to specific record on form open.

I want to be able to go to a specific record on my form when I open
it. The record I want to go to will be dynamic based on the value
currently stored in a global variable. The global contains the
primary key (long int - BlahBlahID) and there is a field on the form
(tbBlahBlahID) that contains the value for this field. I am having a
major case of DFUism here because this looks to be a simple request,
but my aged brain is stumbling on it. Please point me in teh correct
direction.

Thanks...

Oct 15 '07 #1
3 10679
On Mon, 15 Oct 2007 12:53:20 -0700, DavidB wrote:
I want to be able to go to a specific record on my form when I open
it. The record I want to go to will be dynamic based on the value
currently stored in a global variable. The global contains the
primary key (long int - BlahBlahID) and there is a field on the form
(tbBlahBlahID) that contains the value for this field. I am having a
major case of DFUism here because this looks to be a simple request,
but my aged brain is stumbling on it. Please point me in teh correct
direction.

Thanks...
DoCmd.OpenForm "FormName", , , "[BlahBlahID] = " & YourVariableNam e
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Oct 15 '07 #2
On Oct 15, 4:37 pm, fredg <fgutk...@examp le.invalidwrote :
On Mon, 15 Oct 2007 12:53:20 -0700, DavidB wrote:
I want to be able to go to a specific record on my form when I open
it. The record I want to go to will be dynamic based on the value
currently stored in a global variable. The global contains the
primary key (long int - BlahBlahID) and there is a field on the form
(tbBlahBlahID) that contains the value for this field. I am having a
major case of DFUism here because this looks to be a simple request,
but my aged brain is stumbling on it. Please point me in teh correct
direction.
Thanks...

DoCmd.OpenForm "FormName", , , "[BlahBlahID] = " & YourVariableNam e
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Wont that opne the form with JUST that record (ie I wont be able to
scroll through to other records in the control source)? Assume I have
50 BlahBlah records, I want to open the form with all 50 records
availabel just with the BlahBladID passed as the current record.

Oct 15 '07 #3
On Oct 15, 4:42 pm, DavidB <je...@yahoo.co mwrote:
On Oct 15, 4:37 pm, fredg <fgutk...@examp le.invalidwrote :


On Mon, 15 Oct 2007 12:53:20 -0700, DavidB wrote:
I want to be able to go to a specific record on my form when I open
it. The record I want to go to will be dynamic based on the value
currently stored in a global variable. The global contains the
primary key (long int - BlahBlahID) and there is a field on the form
(tbBlahBlahID) that contains the value for this field. I am having a
major case of DFUism here because this looks to be a simple request,
but my aged brain is stumbling on it. Please point me in teh correct
direction.
Thanks...
DoCmd.OpenForm "FormName", , , "[BlahBlahID] = " & YourVariableNam e
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

Wont that opne the form with JUST that record (ie I wont be able to
scroll through to other records in the control source)? Assume I have
50 BlahBlah records, I want to open the form with all 50 records
availabel just with the BlahBladID passed as the current record.- Hide quoted text -

- Show quoted text -
Thanks guys. I got it figured out...

Oct 15 '07 #4

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

Similar topics

1
1874
by: hriceb | last post by:
I know about the SendObject command but I think my question is a bit different. I have TableA that includes FName, LName, etc... and EMail. Generally, data is entered / changed via FormA I want a buton on each form that, when clicked, activates the email client AND automatically places the email addy for that person in the "to" field. I do have a button on each record specific form that activates the email client but it is the record...
9
1289
by: BLUE WATER | last post by:
Help, When I am finished entering in data into my form A, I press the save button that saves this new data to a new record. However I would like my other form to open at a specific record, the record that I just finished working on. Ideas?
1
3286
by: Ian | last post by:
I want to open a form at a particular record, but I think I'm running into problems because the recordsource query is executing asynchronously. In the form's open event I use recordsetclone.findfirst to get a bookmark and then set the form's bookmark to this value. normally that works fine, but the form I am using has a very large number of records and isn't being set to the correct record, even though it is found successfully in the...
2
2572
by: XxLicherxX | last post by:
Hi, Can someone tell me how I can open a form to a specific record from a button on another form. Here is what I want to have happen. I have one form called Computers and another form called Monitors. One of the fields on the Computers form is called Monitor. There is a button on the Computers form that will open up the Monitors form.
2
11290
by: nkoske | last post by:
I have a form with a subform in datasheet view and I have a event on one of the fields in the subform, so that the user can double click it and go to expanded information based on that field. I'm using this code: Private Sub SpecimenNum_DblClick(Cancel As Integer) DoCmd.OpenForm "RDDevice", , , " = '" & Me! & "'" End Sub
2
3374
by: Jpipher | last post by:
Let me explain what I am trying to accomplish... Two forms -- we'll call them "Main" and "Related" A command button on "Main" runs a union query. The union query results are shown in "Related" in Datasheet view. I want to then double click on the textbox ! and either move ! to that specific record or if I need to I am willing to open another form showing the same information.
10
15336
by: sara | last post by:
Hi - I have been struggling with solution ideas for this now for almost 2 weeks, and have not been able to figure this out. I have a user who creates a Purchase Order (tblPOData). In some circumstances, this or another user must create an invoice to go with the PO (I know - that makes no sense, but this is the business case). I have the user go to a form to create the invoice:
3
3470
by: mckbill | last post by:
Is there a way I can direct the cursor to a specific field (variable) in a form by typing the field name while in form view? I have a form with many fields, and it would be nice if there were some method, similar to FIND RECORD (e.g., CTL + F ), where a dialog box would pop up and let me enter the field name, and then jump the cursor to that location. I currently do my edits by locating a record to be changed by ID using CTL+F and...
1
6581
by: cvillav | last post by:
Hello, I am new to Access and this forums, I have two tables and two forms to display the data. Tables Tbuilding Tcriteria Forms fmbuilding
0
9722
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
10643
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
10378
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...
0
9200
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
7664
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
6881
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
5550
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...
2
3862
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
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.