PC Review


Reply
Thread Tools Rate Thread

Auto populating a field

 
 
twalsh
Guest
Posts: n/a
 
      23rd Jun 2009

I have a ticketing system running in access. When an employee creates a
ticket the "Status" field is defaulted to "Pending"

Ticket workers click a cmdbutton that opens a form based on a query meant to
find the oldest "pending" ticket.

When this form is opened or query is run, i would like to set the "Status"
as "Working" so that the next ticket worker doesnt get the same ticket.

I would really prefer not to have the ticket workers manually change the
status and update.....
 
Reply With Quote
 
 
 
 
Piet Linden
Guest
Posts: n/a
 
      23rd Jun 2009
On Jun 23, 12:29*pm, twalsh <twa...@discussions.microsoft.com> wrote:
> I have a ticketing system running in access. When an employee creates a
> ticket the "Status" field is defaulted to "Pending"
>
> Ticket workers click a cmdbutton that opens a form based on a query meantto
> find the oldest "pending" ticket.
>
> When this form is opened or query is run, i would like to set the "Status"
> as "Working" so that the next ticket worker doesnt get the same ticket.
>
> I would really prefer not to have the ticket workers manually change the
> status and update.....


You could do it in the Open or Close event of the form.
Me.txtTicketStatus="Working"
 
Reply With Quote
 
Jack Leach
Guest
Posts: n/a
 
      23rd Jun 2009

If your popup form will only ever be on one record, you can use the OnOpen
event, and use a command such as:

Me.ControlName = "Working" or
Me.ControlName = 1

If this is a navigatable form so users can move from record to record, take
a look at the on Current event. This event fires whenever the record is
changed (reflect the new record's data, not the record you're leaving). This
one is a bit tricker to use... because this event is fired on the form's
initial open as well, you need to have some good null handling here (search
help on the Nz() function, it will come in handy in this case).

As far as a query goes, users should only be editing record-by-record from
forms, so it shouldn't be much of a worry in this case. In the event that
you need to perform mass operations on this data, use an Update query to
change the value to Working.


hth
--
Jack Leach
www.tristatemachine.com

"I haven't failed, I've found ten thousand ways that don't work."
-Thomas Edison (1847-1931)



"twalsh" wrote:

> I have a ticketing system running in access. When an employee creates a
> ticket the "Status" field is defaulted to "Pending"
>
> Ticket workers click a cmdbutton that opens a form based on a query meant to
> find the oldest "pending" ticket.
>
> When this form is opened or query is run, i would like to set the "Status"
> as "Working" so that the next ticket worker doesnt get the same ticket.
>
> I would really prefer not to have the ticket workers manually change the
> status and update.....

 
Reply With Quote
 
Jack Leach
Guest
Posts: n/a
 
      23rd Jun 2009

wait wait wait... on open may not work here. I'm having a brain fart and
can't remember if there's an active record or not at that point. You may
have to use the Current event instead.


--
Jack Leach
www.tristatemachine.com

"I haven't failed, I've found ten thousand ways that don't work."
-Thomas Edison (1847-1931)



"Jack Leach" wrote:

> If your popup form will only ever be on one record, you can use the OnOpen
> event, and use a command such as:
>
> Me.ControlName = "Working" or
> Me.ControlName = 1
>
> If this is a navigatable form so users can move from record to record, take
> a look at the on Current event. This event fires whenever the record is
> changed (reflect the new record's data, not the record you're leaving). This
> one is a bit tricker to use... because this event is fired on the form's
> initial open as well, you need to have some good null handling here (search
> help on the Nz() function, it will come in handy in this case).
>
> As far as a query goes, users should only be editing record-by-record from
> forms, so it shouldn't be much of a worry in this case. In the event that
> you need to perform mass operations on this data, use an Update query to
> change the value to Working.
>
>
> hth
> --
> Jack Leach
> www.tristatemachine.com
>
> "I haven't failed, I've found ten thousand ways that don't work."
> -Thomas Edison (1847-1931)
>
>
>
> "twalsh" wrote:
>
> > I have a ticketing system running in access. When an employee creates a
> > ticket the "Status" field is defaulted to "Pending"
> >
> > Ticket workers click a cmdbutton that opens a form based on a query meant to
> > find the oldest "pending" ticket.
> >
> > When this form is opened or query is run, i would like to set the "Status"
> > as "Working" so that the next ticket worker doesnt get the same ticket.
> >
> > I would really prefer not to have the ticket workers manually change the
> > status and update.....

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
From field auto populating =?Utf-8?B?bWFya2o=?= Microsoft Outlook Discussion 1 13th Sep 2006 08:58 PM
Auto populating date field =?Utf-8?B?VGltTQ==?= Microsoft Excel Misc 1 19th Jun 2006 05:50 PM
Auto Populating a Date Field =?Utf-8?B?U2t5R3V5?= Microsoft Access Forms 4 20th Feb 2006 10:58 PM
Repost about auto populating a field =?Utf-8?B?Sm9obkI=?= Microsoft Access Form Coding 11 17th Oct 2005 03:03 PM
Auto populating a date field =?Utf-8?B?U2Ft?= Microsoft Access Form Coding 2 21st Jul 2005 01:49 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:00 AM.