473,396 Members | 2,017 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

click a textbox, a form pops up and goes to a specific record

Hi. I am wondering if this is possible.

I have a main form (opens on startup) and another form that contains problem tickets/records.

I have a label on the bottom left of the form that says
"You are currently logged on as: " [user-name] (takes the username for computer) This is a problem tracking db and is used by 4 people

I have added another label that says "You currently have" # " tickets opened."

I would like to do the following:
1) change the "#" to the actual number of tickets the user has (based on who logged on). so let's say I opened 4 tickets, it will say "You currently have 4 tickets opened." if my friend opened 6 tickets yesterday, when he logs on from his computer and opens the db, it will show on his screen "You current have 6 tickets opened."
2) make the # clickable so that it opens up a listbox that shows the opened tickets they have. based on what they click on the listbox, it will open up form #2 that goes to that specific record.

thanks. hope this isn't to complicated.
Jul 22 '11 #1
4 1641
Rabbit
12,516 Expert Mod 8TB
You can use DLookup to find out how many tickets are open. Then in the On Click event, you can use the where parameter of DoCmd.OpenForm to limit it to the specific user.
Jul 22 '11 #2
NeoPa
32,556 Expert Mod 16PB
I would suggest, assuming your main form is a menu and doesn't otherwise use a record source, that you build the menu bound to a record source showing the open tickets filtered by the current user (and move all existing controls to the form's footer). This has the bonus that the form can be requeried at any time to show the updated value correctly.

You could even design it with a Detail section that listed the individual records. This could be hidden by default, but triggered to open on whichever trigger you like. Once a record is selected it can be opened directly on another form, and the Detail section optionally hidden again. The other form can trigger a requery of the main form if the record changes status.
Jul 23 '11 #3
again, sorry for not updating this thread.

my supervisor wanted something else and i managed to solve it.

what i did instead of having a label was create a separate subform with a listbox that queries the table for those that have "OPEN". I then inserted a hyper link on the main form and linked it to the subform. the hyperlink was also updated to show the DCount of "OPEN" on form load.


so when i click on the # that shows open tickets, it opens up the subform listbox. from there, when i select an item from the listbox, it automatically opens up the User Problem Log form and goes to that specific record based on the autonumber.

problem solved. :)

again, thanks for the help Rabbit and NeoPa. I truly appreciate it. :)
Jul 23 '11 #4
NeoPa
32,556 Expert Mod 16PB
Pleased to hear it Jeffrey - and thanks for the update :-)
Jul 23 '11 #5

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

Similar topics

2
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...
1
by: Regnab | last post by:
The record's primary key is the report number. The form in which data is entered or modified has this Report Number at the top. I would like to know if I could use SQL in the VB code so that on...
2
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. ...
3
by: MartinR | last post by:
Hi, I'm still new to writing code in vba as I've only been introduced to access three weeks ago. I have written this code below and it executes but does not do what I want it to do. What I want is...
2
by: rousseaud | last post by:
I have a continuous form, frmA, that lists certain record fields from tblB. I want to be able to click on one of the records in frmA (just an on click event on one of the form fields) and have that...
3
by: getro | last post by:
Hi Everyone, I need to open an Access 2003 form to a specific record from a custom Outlook 2003 Appointment form. The form has a command button that would pass a record id to access and open the...
4
by: Martin Bentler | last post by:
I have a form that is locked for editing, adding or deleting. Through the use of a command button I open another form, that allows editing, plus allows the user to other areas of the database,...
1
by: Martin Bentler | last post by:
Right now, I have a form, locked records, on which I have a CommandButton that opens a second form (much like the first) but open for editing, plus allowing the user to manipulate other areas of the...
11
by: casan.mike | last post by:
Hi all, I have a form called "customer_frm" with many records in it. I would like to have a form that has a combobox listing all the customers, and a button that open the "customers_frm" to...
0
by: MadSma | last post by:
hi i have a formA in datasheet view and i want to be able to click on any fieldZ and to open formX on the specific fieldQ that matches that of the first form(fieldZ) ie fieldZ is equal to fieldQ ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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,...
0
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...
0
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,...

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.