Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - pls help me
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

pls help me

 Post Reply Post Reply
Author
BlueMask View Drop Down
Newbie
Newbie
Avatar

Joined: 27 April 2003
Location: Turkey
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote BlueMask Quote  Post ReplyReply Direct Link To This Post Topic: pls help me
    Posted: 23 June 2005 at 3:32pm

Hi guys,

i need your help!!!

i have a ms access db and it has 2 table. first name is "x", second "y".
in the x, i have 3 column, in the y, i have 2 column. But allready x and y have a the same column.

For example ;

x table
--------------
x AD              Mail
600 xxxx xxxx  aaa@aaa.com
601 yyyy xxxx  bbb@aaa.com

y table
--------------
xID2 Islem1 Islem2
600 10 100
601 20 1000
601 25 1002

xid and xid2 have the same number. i want to send mail automaticly to user.

For exam ;

Hi xxx,

Your data is
600 10 100

Another ;

Hi yyy,
Your data is
601 20 1000
601 25 1002

like this.

i can send mail for loop by useind cdont. But i didn't send them datat. when i tray to send their data, script only took first data. (10 - 100)

i hope, you can understand :(

please help me...

Back to Top
wingking View Drop Down
Groupie
Groupie
Avatar

Joined: 09 January 2004
Location: United States
Status: Offline
Points: 99
Post Options Post Options   Thanks (0) Thanks(0)   Quote wingking Quote  Post ReplyReply Direct Link To This Post Posted: 08 July 2005 at 4:31pm
with out seeing the query statement I would say that you need the loop statement in there like...
do until rs.EOF
' put in the code to send the email to your user or reference the page with the code
rs.MoveNext
Loop
 
as far as the query statement goes, as I understand your problem you need to join the two table. (I work in Sql so not sure how this should look in access) but we do it with a where statement in there so yours would look something like this, someone can maybe help convert it to access.
 
sql = (" select * from y, x where x.xid = y.xid2 ")
 
actually since the fields have different names you can leave off the x. and y.
you would then do the loop statement etc. before you close out the rs and db connection.
 
If the person you are emailing has more then one record you will need to throw in a loop statement inside the loop statement to return all of those records that belong to him.
 
I hope that helps.
 
 


Edited by wingking - 08 July 2005 at 5:15pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.