ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 14th, 2002, 03:21 AM
hotmustangkid hotmustangkid is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Florida
Posts: 3 hotmustangkid User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to hotmustangkid Send a message via Yahoo to hotmustangkid
MAPI Controls & Sequential Access files

I am trying to make a command button in a program I currently use not only print information - but also go through a control array (From 0 to 57) and for each part of the array that belongs to a certain user - I want it to store the information on that user in a sequential access file (I think) and then at the end of the From statement I want it to e-mail a message to the user who has checked out this particular equipment. Here is the code from my cmdPrint button. Please help. It is e-mailing a message to the user but is not placing the information needed in the e-mail.

Quote:
Private Sub cmdPrint_Click()
Dim intNumber As Integer, strFileName As String, udtHistoryRec As HistoryStruc
cmdPrint.Visible = False
cmdRemind.Visible = False
lblAcc.Visible = False
imgBack.Visible = False
imgTop.Visible = False
imgBottom.Visible = False

MAPISession1.SignOn
MAPIMessages1.SessionID = MAPISession1.SessionID
strFileName = "MailTemp"
Open strFileName For Output As #2
For intNumber = 0 To 57
If lblGname(intNumber).BackColor = vbRed Then
If lblGname(intNumber).Caption <> lblUser.Caption Then
lblGname(intNumber).BackColor = vbYellow
lblDate1(intNumber).BackColor = vbYellow
End If
End If
If lblGname(intNumber).Caption = lblUser.Caption Then
Write #2, lblGun(intNumber).Caption
lblGname(intNumber).BackColor = vbMagenta
lblDate1(intNumber).BackColor = vbMagenta
End If
Next intNumber
PrintForm
For intNumber = 0 To 57
If lblGname(intNumber).BackColor <> vbWhite Then
lblGname(intNumber).BackColor = vbRed
lblDate1(intNumber).BackColor = vbRed
End If
Next intNumber
Close #2

MAPIMessages1.Compose
MAPIMessages1.RecipDisplayName = lblUser.Caption & " 8243"
MAPIMessages1.MsgSubject = "You've Got Equipment Checked Out! - A message from your friendly computer room" MAPIMessages1.MsgNoteText = strFileName
MAPIMessages1.ResolveName
MAPIMessages1.Send
MAPISession1.SignOff
cmdPrint.Visible = True
imgBack.Visible = True
imgTop.Visible = True
imgBottom.Visible = True
cmdRemind.Visible = True
lblAcc.Visible = True

End Sub

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > MAPI Controls & Sequential Access files


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT