473,486 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Create 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 10657
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] = " & YourVariableName
--
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...@example.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] = " & YourVariableName
--
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.comwrote:
On Oct 15, 4:37 pm, fredg <fgutk...@example.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] = " & YourVariableName
--
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
1852
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...
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...
1
3266
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...
2
2549
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...
2
11249
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. ...
2
3358
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"...
10
15295
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...
3
3452
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...
1
6530
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
7099
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
6964
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...
0
7123
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,...
1
6842
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...
0
7319
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
5430
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
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
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 ...
0
262
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...

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.