Search Results

Showing results 1 to 40 of 122
Search took 0.01 seconds.
Search: Posts Made By: cometburn
Forum: Visual Basic 4 / 5 / 6 Jun 12th, 2008
Replies: 2
Solved: Listview
Views: 949
Posted By cometburn
Try this...


With MasterList.SelectedItem
myID = .Text
lblEmpNo = .SubItems(1)
txtLastname = .SubItems(2)
txtFirstname = .SubItems(3)
...
Forum: Visual Basic 4 / 5 / 6 May 20th, 2008
Replies: 3
Views: 532
Posted By cometburn
'if your list2.text is a Number
strSQL = "SELECT * FROM Usages WHERE UsageID = " & Cint(List2.Text) & ""


A String is a String...
A number is a Number..
Forum: Visual Basic 4 / 5 / 6 May 16th, 2008
Replies: 5
Views: 1,233
Posted By cometburn
mySQl connection string (requires a mysqlODBC driver)
Public Const sqlCon = "DRIVER={MySQL ODBC 3.51 Driver};SERVER=<Server address>;DATABASE=<Database name>;USER=user;PASSWORD=password;OPTION=3"
...
Forum: Visual Basic 4 / 5 / 6 May 2nd, 2008
Replies: 1
Views: 766
Posted By cometburn
first download mysql ODBC driver 3.51 and instal it to your machine.

' the connection string
Public Const sqlCon = "DRIVER={MySQL ODBC 3.51 Driver};SERVER=<server address>;DATABASE=<database...
Forum: Visual Basic 4 / 5 / 6 May 2nd, 2008
Replies: 4
Views: 606
Posted By cometburn
Jx,
he wants to generate the source code from the exe he has which is i think will give anyone a hell of a headache.
Forum: Visual Basic 4 / 5 / 6 May 1st, 2008
Replies: 9
Views: 1,801
Posted By cometburn
why do you wanna do this?
Forum: Visual Basic 4 / 5 / 6 May 1st, 2008
Replies: 9
Views: 1,801
Posted By cometburn
Forum: Visual Basic 4 / 5 / 6 Apr 21st, 2008
Replies: 2
Views: 438
Posted By cometburn
could you post your code? or attach a sample of your project?
Forum: Visual Basic 4 / 5 / 6 Apr 19th, 2008
Replies: 20
Views: 1,927
Posted By cometburn
Man, I ashamed of you. were both form the same country but PLEASE!!!! if you cant speak or write english, better do nothing. And Please take a english tutor.

"WAG MO IPAHIYA LAHI NATING MGA...
Forum: Visual Basic 4 / 5 / 6 Apr 18th, 2008
Replies: 5
Views: 1,025
Posted By cometburn
mySql Date Format is: Year-Month-Date

which is YYYY-MM-dd
Forum: Visual Basic 4 / 5 / 6 Apr 17th, 2008
Replies: 3
Views: 1,649
Posted By cometburn
Why not use a date picker instead?
Forum: Visual Basic 4 / 5 / 6 Apr 17th, 2008
Replies: 8
Views: 2,057
Posted By cometburn
Forum: Visual Basic 4 / 5 / 6 Apr 16th, 2008
Replies: 8
Views: 2,057
Posted By cometburn
Dim rs As ADODB.Recordset
Dim adoConn As ADODB.Connection

Set adoConn = New ADODB.Connection
adoConn.ConnectionString = sqlcon
adoConn.Open

Set rs = New...
Forum: Visual Basic 4 / 5 / 6 Apr 16th, 2008
Replies: 4
Views: 2,936
Posted By cometburn
Lets assume that you already have the recordset with the records inside it.

this is how i populate a combobox...

rs.Movefirst

Do While Not rs.EOF

cbo.AddItem...
Forum: Visual Basic 4 / 5 / 6 Apr 16th, 2008
Replies: 4
Views: 1,157
Posted By cometburn
Check this out..


Dim rs As ADODB.Recordset
Dim adoConn As ADODB.Connection
dim Str as string

Set adoConn = New ADODB.Connection
adoConn.ConnectionString = sqlcon...
Forum: Visual Basic 4 / 5 / 6 Apr 16th, 2008
Replies: 33
Views: 2,717
Posted By cometburn
On my Opinion... your gonna get the result of txtQty * txtPrice when the value entered on txtQty is greater than 1...

So...

if txtQty >= 1 then
lblval.caption=Val(txtQty) * Val(txtPrice)...
Forum: Visual Basic 4 / 5 / 6 Apr 16th, 2008
Replies: 20
Views: 1,927
Posted By cometburn
Whats an MDB v7.0??? Never heard of it...
Forum: Visual Basic 4 / 5 / 6 Apr 16th, 2008
Replies: 20
Views: 1,927
Posted By cometburn
hmmm.... This is somewhat can be explained here but it will take a long time.

kaya ko gawin to pero medyo matatagalan since im a bit bc. but i will try..
Forum: Visual Basic 4 / 5 / 6 Apr 16th, 2008
Replies: 20
Views: 1,927
Posted By cometburn
what database are you planning to use?
Forum: Visual Basic 4 / 5 / 6 Apr 16th, 2008
Replies: 20
Views: 1,927
Posted By cometburn
Using ADO is easier.. for me. ill try to solve your problem when im not bc ok?

Taga Pilipinas ka naman eh kaya hintay ka lang. medyo bc kasi ako ok?

Maybe later i could help you.
Forum: Visual Basic 4 / 5 / 6 Apr 16th, 2008
Replies: 20
Views: 1,927
Posted By cometburn
hmmm... seems like a school project ei? But why use DAO?
Forum: Visual Basic 4 / 5 / 6 Apr 15th, 2008
Replies: 3
Views: 570
Posted By cometburn
hmmm... Could you post your code? We'll see if we can help.
Forum: Visual Basic 4 / 5 / 6 Apr 15th, 2008
Replies: 2
Views: 865
Posted By cometburn
Calling this function will empty all the textboxes within a form...




Public Sub ControlStatus(frm As Form, stat As Boolean)
On Error Resume Next
Dim ctrl As Control

For...
Forum: Visual Basic 4 / 5 / 6 Apr 15th, 2008
Replies: 9
Views: 1,614
Posted By cometburn
what are you trying to get here? why do you want to add an item from a textbox?
Forum: Visual Basic 4 / 5 / 6 Apr 10th, 2008
Replies: 13
Views: 3,690
Posted By cometburn
hmmm... creating a table on runtime? what for?
Forum: Visual Basic 4 / 5 / 6 Apr 10th, 2008
Replies: 4
Views: 1,017
Posted By cometburn
Here is a code for editing a table on an access database. The logic is there, you just have to edit.


Dim conn As New ADODB.Connection
Dim dbPath As String
Dim strEdit As String

dbPath =...
Forum: Visual Basic 4 / 5 / 6 Apr 7th, 2008
Replies: 5
Views: 888
Posted By cometburn
Select CI.name,I.ServiceID,P.packagename,P.duration,P.price,[I.date],I.timeIn,I.timeOut
From CustInfo CI, InDate I, PakInfo P Where [Date] >= <DatePicker1> and [Date] <= <DatePicker2>....

Now to...
Forum: Visual Basic 4 / 5 / 6 Apr 5th, 2008
Replies: 4
Views: 626
Posted By cometburn
You will know a variables value on the immediate window simply by typing...

?myVariable

after pressing enter, the value of the variable will appear below
Forum: Visual Basic 4 / 5 / 6 Apr 5th, 2008
Replies: 23
Views: 2,081
Posted By cometburn
Dim Total As Integer


Private Function sum(a, b)
Dim c As Integer
sum = a + b

End Function

Private Sub Command1_Click()
Forum: Visual Basic 4 / 5 / 6 Apr 5th, 2008
Replies: 3
Solved: Comments
Views: 1,476
Posted By cometburn
for single line comments use single quotes( ' )

for multi line comments this is what i use

View --> Toolbars --> Edit

On your code highlight the lines you want to comment
then on Edit...
Forum: Visual Basic 4 / 5 / 6 Apr 4th, 2008
Replies: 11
Views: 5,387
Posted By cometburn
could you explain it on a clear way?
Forum: Visual Basic 4 / 5 / 6 Apr 3rd, 2008
Replies: 2
Views: 852
Posted By cometburn
is this what you want to do?


If Form5.Visible = True Then
Command3.Caption = "Unhide History"
Unload Form5
Else
Form5.Show
Command3.Caption = "Hide History"
End If
Forum: Visual Basic 4 / 5 / 6 Apr 2nd, 2008
Replies: 4
Views: 570
Posted By cometburn
Glad to help and please mark the thread closed
Forum: Visual Basic 4 / 5 / 6 Apr 2nd, 2008
Replies: 4
Views: 6,821
Posted By cometburn
this is from Madboy of VBForums
Forum: Visual Basic 4 / 5 / 6 Apr 1st, 2008
Replies: 2
Views: 1,357
Posted By cometburn
Put a bracket on Date.

'easier way to open a recordset
rs.Open "Select Whofirst,Player, [Date], Status, Level, End_Time from yyyy", YourConnection, , adOpenDynamic, adLockPessimistic
Forum: Visual Basic 4 / 5 / 6 Apr 1st, 2008
Replies: 3
Views: 1,991
Posted By cometburn
Compared to Data Report, CR (Crystal Report) is more advance reporting tool. For more infos you can always go to http://www.businessobjects.com/ about CR's.
Forum: Visual Basic 4 / 5 / 6 Apr 1st, 2008
Replies: 5
Views: 1,944
Posted By cometburn
Glad to help and Please mark the thread closed. Thanks.
Forum: Visual Basic 4 / 5 / 6 Apr 1st, 2008
Replies: 4
Views: 570
Posted By cometburn
here it is...


Dim Rate As Double
Dim ElectricalUsage As Double
Dim TotalPayment As Double
'get Electrical Usage
ElectricalUsage = Val(txtLatestMeterReading.Text) -...
Forum: Visual Basic 4 / 5 / 6 Apr 1st, 2008
Replies: 4
Views: 570
Posted By cometburn
You got it already. The problem is you have to Code it. Lol. Let me look at this one.
Forum: Visual Basic 4 / 5 / 6 Apr 1st, 2008
Replies: 3
Views: 7,132
Posted By cometburn
Date you say?
TDBDate1.Text = Date
Showing results 1 to 40 of 122

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC