Different users, same front end on same computer?

Chrisopia

Registered User.
Local time
Today, 04:26
Joined
Jul 18, 2008
Messages
279
Google, for once, is useless... I am trying to create a sort of "interrupt" mode, where staff have log in sessions...

Say, for example, a person logs in (e.g. they enter "Staff ID: 1") then start filling out a form, but someone else needs to enter another form, press "Staff Login", then enter "Staff ID: 2"... do what they have to do, then leave, and then the first person returns, enter "Staff ID: 1" - and everything they were doing returns...

I imagine a situation where 2 people are each serving someone at the same time and need to enter an instant invoice or till receipt - like they do in bars, where another bar staff can use the same till whilst the previous bar staff is busy pouring drinks, but has already entered something into the till...

I have no idea what combination of words to use, or what this system is called!? So I have no idea where to begin...
 
I have used the following in something similar, but each user had only one form to access.

You need to look at creating a new instance of the form

The code I use is:

Code:
Function OpenFormInst (FCaption as String, RID as Long, RIndex as string)
Dim Frm as Form
 
'you could put a case statement here for different forms based on a formname  brought through above
 
set frm=new [Form1] 'the name of the form you want to open. It cannot be a variable and will fail on compile of the form does not exist (it does not need to be open)
frm.caption=FCaption
If RID<>0 'RID is a unique id you may not need it
    frm.filter="[" & findex & "] = " & RID
    frm.filteron=true
End if
frm.visible=true
formcln.add item:=frm, Key:=Cstr(frm.hwnd)
set frm=nothing
End Function

Allen Browne has an exceleent article here

http://allenbrowne.com/ser-35.html

What this does is opens a new instance of the form, you can have as many instances as you like - in your case potentially one for each employee.

You'll have to experiment to see if it will do what you need it to do
 

Users who are viewing this thread

Back
Top Bottom