Connecting Tech Pros Worldwide Help | Site Map

Selecting Specific Records In A Multiuser Database

 
LinkBack Thread Tools Search this Thread
  #1  
Old March 10th, 2008, 11:35 PM
Steve
Guest
 
Posts: n/a
Default Selecting Specific Records In A Multiuser Database

Say a multiuser database has over five hundred customers and I want to be
able to send email to selected customers. What is the standard way to select
the customers? At first I thought of just havung a Yes/No field in the
customers field but then thought my selections might interfere with the
seletions of other users and vice versa.

Thanks!



  #2  
Old March 11th, 2008, 12:05 AM
Albert D. Kallal
Guest
 
Posts: n/a
Default Re: Selecting Specific Records In A Multiuser Database

There is two approaches I often use:


1) add two fields MailSelect + UserName

so, when user clicks on the MailSelect field, you automatic place the
current logged on users name into the Username field.


2) You create a table that is local to your front end, and simply insert the
ID's into that local table.

Then, to select, you go

select * from tblcustomers where ID in (select id from myLocalSelectTable)

Note that these "where" clauses that are sub-selects even work as a "where"
clause for reprots.

Approach #2 might not work if you need others to be able to print, or use
that list you made from different workstations.

You can get the current network logon name with:

http://www.mvps.org/access/api/api0008.htm

And, the current computer name with:

http://www.mvps.org/access/api/api0009.htm

And, if using ms-access security, then currentuser() will return the
ms-access logon.

I often log all 3 of the above values in some applications.


--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com


  #3  
Old March 12th, 2008, 02:05 AM
Steve
Guest
 
Posts: n/a
Default Re: Selecting Specific Records In A Multiuser Database

Thanks for responding, Albert!

In approach#1, if another user clicks on the MailSelect field of a customer
you selected while you are making your selections, you lose your selected
customer. That's what my question is about!

Thanks!



"Albert D. Kallal" <PleaseNOOOsPAMmkallal@msn.comwrote in message
news:3%jBj.69561$pM4.61006@pd7urf1no...
Quote:
There is two approaches I often use:
>
>
1) add two fields MailSelect + UserName
>
so, when user clicks on the MailSelect field, you automatic place the
current logged on users name into the Username field.
>
>
2) You create a table that is local to your front end, and simply insert
the ID's into that local table.
>
Then, to select, you go
>
select * from tblcustomers where ID in (select id from myLocalSelectTable)
>
Note that these "where" clauses that are sub-selects even work as a
"where" clause for reprots.
>
Approach #2 might not work if you need others to be able to print, or use
that list you made from different workstations.
>
You can get the current network logon name with:
>
http://www.mvps.org/access/api/api0008.htm
>
And, the current computer name with:
>
http://www.mvps.org/access/api/api0009.htm
>
And, if using ms-access security, then currentuser() will return the
ms-access logon.
>
I often log all 3 of the above values in some applications.
>
>
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com
>
>

  #4  
Old March 12th, 2008, 09:25 AM
Arno R
Guest
 
Posts: n/a
Default Re: Selecting Specific Records In A Multiuser Database


"Steve" <Email@Invalid.comschreef in bericht news:13tee2v9t0e3odf@corp.supernews.com...
Quote:
Thanks for responding, Albert!

In approach#1, if another user clicks on the MailSelect field of a customer
you selected while you are making your selections, you lose your selected
customer. That's what my question is about!
Simply use a local temptable for the mailselect.
If bloat is an issue then put the temptable(s) in a separate app_tmp.mdb that is created every time you start the app.

Arno R
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.