Forum: Visual Basic 4 / 5 / 6 Jun 12th, 2008 |
| Replies: 2 Views: 949 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 '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 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 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 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 why do you wanna do this? |
Forum: Visual Basic 4 / 5 / 6 May 1st, 2008 |
| Replies: 9 Views: 1,801 |
Forum: Visual Basic 4 / 5 / 6 Apr 21st, 2008 |
| Replies: 2 Views: 438 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 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 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 Why not use a date picker instead? |
Forum: Visual Basic 4 / 5 / 6 Apr 17th, 2008 |
| Replies: 8 Views: 2,057 how do you want it to be displayed? |
Forum: Visual Basic 4 / 5 / 6 Apr 16th, 2008 |
| Replies: 8 Views: 2,057 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 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 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 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 Whats an MDB v7.0??? Never heard of it... |
Forum: Visual Basic 4 / 5 / 6 Apr 16th, 2008 |
| Replies: 20 Views: 1,927 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 what database are you planning to use? |
Forum: Visual Basic 4 / 5 / 6 Apr 16th, 2008 |
| Replies: 20 Views: 1,927 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 hmmm... seems like a school project ei? But why use DAO? |
Forum: Visual Basic 4 / 5 / 6 Apr 15th, 2008 |
| Replies: 3 Views: 570 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 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 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 hmmm... creating a table on runtime? what for? |
Forum: Visual Basic 4 / 5 / 6 Apr 10th, 2008 |
| Replies: 4 Views: 1,017 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 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 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 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 Views: 1,476 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 could you explain it on a clear way? |
Forum: Visual Basic 4 / 5 / 6 Apr 3rd, 2008 |
| Replies: 2 Views: 852 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 Glad to help and please mark the thread closed |
Forum: Visual Basic 4 / 5 / 6 Apr 2nd, 2008 |
| Replies: 4 Views: 6,821 this is from Madboy of VBForums |
Forum: Visual Basic 4 / 5 / 6 Apr 1st, 2008 |
| Replies: 2 Views: 1,357 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 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 Glad to help and Please mark the thread closed. Thanks. |
Forum: Visual Basic 4 / 5 / 6 Apr 1st, 2008 |
| Replies: 4 Views: 570 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 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 Date you say?
TDBDate1.Text = Date |