Click here to Skip to main content
15,896,269 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionMs Access Data Updation using VB.Net Pin
mayhem_rules7-Feb-06 18:09
mayhem_rules7-Feb-06 18:09 
AnswerRe: Ms Access Data Updation using VB.Net Pin
Dave Kreskowiak8-Feb-06 8:00
mveDave Kreskowiak8-Feb-06 8:00 
GeneralRe: Ms Access Data Updation using VB.Net Pin
mayhem_rules8-Feb-06 18:04
mayhem_rules8-Feb-06 18:04 
GeneralRe: Ms Access Data Updation using VB.Net Pin
Dave Kreskowiak9-Feb-06 3:02
mveDave Kreskowiak9-Feb-06 3:02 
GeneralRe: Ms Access Data Updation using VB.Net Pin
mayhem_rules10-Feb-06 0:18
mayhem_rules10-Feb-06 0:18 
Questionusing DVP1412.dll in VB.NET Pin
bskirkman7-Feb-06 17:44
bskirkman7-Feb-06 17:44 
QuestionHow to remove this Office COM Add-in Pin
cylix20007-Feb-06 17:31
cylix20007-Feb-06 17:31 
QuestionProblem on changing recordset to dataset Pin
drexler_kk7-Feb-06 17:14
drexler_kk7-Feb-06 17:14 
I am new to VB.NET. I really try a few ways but seems like this is not run. I'm migrating a VB Engine to VB.NET. The following are the code I need to change to VB.NET. Really wish someone can give me a help here. Thank you all so much~!

Private Sub Spam_Now()

Dim conStr1 As String
Dim con1 As ADODB.Connection
Dim rs1, rs2, rs3 As ADODB.Recordset
Dim sql1, sql2, sql3 As String

conStr1 = "provider=SQLOLEDB;data source=" & DellServerIP _
& ";database=pre_sms;uid=sa;pwd=" & DellServerPass

Set con1 = New ADODB.Connection
con1.Open conStr1

Set rs1 = New ADODB.Recordset
Set rs1.ActiveConnection = con1
Set rs2 = New ADODB.Recordset
Set rs2.ActiveConnection = con1

sql1 = "SELECT TOP 20 * FROM TT_Member WHERE Reminder = '0' AND Status = '1'"
rs1.Open (sql1)

If rs1.EOF And rs1.BOF Then
Label1.Caption = "Finished - " & Now
Else
Do Until rs1.EOF
Label1.Caption = "Spamming - " & Now

OriginatingAddress = rs1.Fields("Mobile_No").Value
If Mid(OriginatingAddress, 1, 3) = "601" Then
Telco = 2
ElseIf Mid(OriginatingAddress, 1, 3) = "019" Then
Telco = 9
End If

Reminder_Msg = "Free Msg.Subscription Reminder.Fee:Auto renewal datedate, unless cancelled. To cancel, send STOP TT to 32132."

MT_Msg = Reminder_Msg
MT_Msg = Replace(MT_Msg, "datedate", Renewal_Date3)

Call Sent_MT
Call Close_Record
rs1.MoveNext
Loop
End If

End Sub

AnswerRe: Problem on changing recordset to dataset Pin
alien viper7-Feb-06 21:37
alien viper7-Feb-06 21:37 
GeneralRe: Problem on changing recordset to dataset Pin
drexler_kk7-Feb-06 22:14
drexler_kk7-Feb-06 22:14 
AnswerRe: Problem on changing recordset to dataset Pin
Guffa7-Feb-06 22:36
Guffa7-Feb-06 22:36 
GeneralRe: Problem on changing recordset to dataset Pin
drexler_kk8-Feb-06 20:48
drexler_kk8-Feb-06 20:48 
QuestionHELP! How to convert msaccess bitmap image to long binary format??? Pin
isgrom7-Feb-06 13:22
isgrom7-Feb-06 13:22 
AnswerRe: HELP! How to convert msaccess bitmap image to long binary format??? Pin
Mekong River7-Feb-06 14:53
Mekong River7-Feb-06 14:53 
GeneralRe: HELP! How to convert msaccess bitmap image to long binary format??? Pin
isgrom8-Feb-06 5:51
isgrom8-Feb-06 5:51 
GeneralRe: HELP! How to convert msaccess bitmap image to long binary format??? Pin
Dave Kreskowiak8-Feb-06 7:56
mveDave Kreskowiak8-Feb-06 7:56 
GeneralRe: HELP! How to convert msaccess bitmap image to long binary format??? Pin
isgrom8-Feb-06 9:06
isgrom8-Feb-06 9:06 
GeneralRe: HELP! How to convert msaccess bitmap image to long binary format??? Pin
Dave Kreskowiak8-Feb-06 11:35
mveDave Kreskowiak8-Feb-06 11:35 
GeneralRe: HELP! How to convert msaccess bitmap image to long binary format??? Pin
Mekong River9-Feb-06 20:18
Mekong River9-Feb-06 20:18 
QuestionCopy data from Datagrid to form Pin
Jlawrnce7-Feb-06 10:54
Jlawrnce7-Feb-06 10:54 
AnswerRe: Copy data from Datagrid to form Pin
Jlawrnce7-Feb-06 11:53
Jlawrnce7-Feb-06 11:53 
GeneralRe: Copy data from Datagrid to form Pin
Jlawrnce7-Feb-06 13:56
Jlawrnce7-Feb-06 13:56 
QuestionSorry now in english => system.UnauthorizedAccessException during access on system directory Pin
cosma2177-Feb-06 10:28
cosma2177-Feb-06 10:28 
AnswerRe: Sorry now in english => system.UnauthorizedAccessException during access on system directory Pin
Guffa7-Feb-06 11:13
Guffa7-Feb-06 11:13 
GeneralRe: Sorry now in english => system.UnauthorizedAccessException during access on system directory Pin
cosma2177-Feb-06 11:22
cosma2177-Feb-06 11:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.