Search Results

Showing results 1 to 19 of 19
Search took 0.01 seconds.
Search: Posts Made By: kb.net ; Forum: Visual Basic 4 / 5 / 6 and child forums
Forum: Visual Basic 4 / 5 / 6 Dec 18th, 2007
Replies: 4
Views: 2,260
Posted By kb.net
Hi,

[code]xlApp.ActiveWorkbook.Close True, App.Path & "\gegevens.xls"
xlApp.Quit
Set xlApp = Nothing[/close]
Forum: Visual Basic 4 / 5 / 6 Nov 1st, 2007
Replies: 4
Views: 2,125
Posted By kb.net
Hi,

And if you are using access use "*" instead of "%" ex:
select ename from emp where ename like 'A*'
Forum: Visual Basic 4 / 5 / 6 Oct 3rd, 2007
Replies: 9
Views: 1,570
Posted By kb.net
Hi,

I don't know what is generating the error as I tested my code and it worked correctly. Try to debug in order to find where the error is. A for Me. you can remove it where the "Me" word...
Forum: Visual Basic 4 / 5 / 6 Oct 2nd, 2007
Replies: 3
Solved: EOF and Excel
Views: 2,848
Posted By kb.net
Hi,

EOF will be reading the cells or the sheets ??
Forum: Visual Basic 4 / 5 / 6 Oct 2nd, 2007
Replies: 9
Views: 1,570
Posted By kb.net
Hi,

Check this:


Dim xl As Object
Dim xlsheet As Object
Dim xlwbook As Object

Set xl = CreateObject("Excel.Application")
Forum: Visual Basic 4 / 5 / 6 Sep 16th, 2007
Replies: 3
Solved: sql statement
Views: 882
Posted By kb.net
Hi,

It will look something like this:
Select tbluser.id, tblinfo.* from tbluser, tblinfo where tbluser.id=tblinfo.id
Forum: Visual Basic 4 / 5 / 6 Sep 9th, 2007
Replies: 6
Views: 6,863
Posted By kb.net
Hi,
Just replace the wdFormatRTF with number 6 (this code is for VB6, if you are using different IDE please advise).

Dim Oword As Object
Dim Odoc As Object

Private Sub Command1_Click()
Set...
Forum: Visual Basic 4 / 5 / 6 Sep 4th, 2007
Replies: 6
Views: 6,863
Posted By kb.net
Hi,

Try this, I haven't been able to test it:

Dim Oword As Object
Dim Odoc As Object

Private Sub Command1_Click()
Set Oword = CreateObject("Word.Application")
Set Odoc =...
Forum: Visual Basic 4 / 5 / 6 Sep 4th, 2007
Replies: 2
Views: 4,784
Posted By kb.net
Hi,

Use the below code while changing just the file name:

Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal...
Forum: Visual Basic 4 / 5 / 6 Sep 3rd, 2007
Replies: 2
Views: 1,054
Posted By kb.net
Hi,
What I ususaly do is call the below SQL through regular ADO "Select GetDate()" so the statment is implemented on the SQL server on our main server.
Forum: Visual Basic 4 / 5 / 6 Sep 2nd, 2007
Replies: 4
Views: 1,696
Posted By kb.net
Hi,
To disable the possibility of adding the same record twice I have amended the example a little.
Forum: Visual Basic 4 / 5 / 6 Aug 30th, 2007
Replies: 4
Views: 1,696
Posted By kb.net
Hi,

Check the attached example.
Forum: Visual Basic 4 / 5 / 6 Aug 30th, 2007
Replies: 3
Solved: sql query error
Views: 938
Posted By kb.net
Hi,

What is the problem you are facing ... As syntax I don't see any mistake. If you are retriving wrong records try to format the value of the date picker.
Forum: Visual Basic 4 / 5 / 6 Aug 26th, 2007
Replies: 3
Views: 1,821
Posted By kb.net
Hi,

Attached file shows an example of this.
Forum: Visual Basic 4 / 5 / 6 Aug 22nd, 2007
Replies: 4
Views: 2,390
Posted By kb.net
Hi,

I can't check your code right now but below is a similar code I used once for a login form (no need for the module):

Option Explicit
Dim rs As Recordset
Dim db As Connection

Private...
Forum: Visual Basic 4 / 5 / 6 Aug 20th, 2007
Replies: 2
Views: 514
Posted By kb.net
Hi,
Just replace the 0 by 1 for the start index:
MsgBox Mid$(txtFirst.Text, 1, 2)
Forum: Visual Basic 4 / 5 / 6 Aug 18th, 2007
Replies: 3
Views: 2,443
Posted By kb.net
Hi,

Your problem is in line 10 where you have seperated the If Then statment from their result without using End If. Just get line 11 to be directly after Then in line 10 (without going down to a...
Forum: Visual Basic 4 / 5 / 6 Aug 16th, 2007
Replies: 4
Solved: vb6.0 combo box
Views: 6,062
Posted By kb.net
Hi,

I think you are looking for:

Me.Combo1.AddItem " Select "
Me.Combo1.ListIndex = 0
Forum: Visual Basic 4 / 5 / 6 Aug 15th, 2007
Replies: 4
Views: 3,216
Posted By kb.net
Hi,

For the extra spacing problem use the built in excel function clean which will remove all non printable chars.

As for the problem of row height it is becuase you are exceding the accepted...
Showing results 1 to 19 of 19

 


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

©2003 - 2009 DaniWeb® LLC