Forum: Visual Basic 4 / 5 / 6 Dec 18th, 2007 |
| Replies: 4 Views: 2,260 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 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 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 Views: 2,848 Hi,
EOF will be reading the cells or the sheets ?? |
Forum: Visual Basic 4 / 5 / 6 Oct 2nd, 2007 |
| Replies: 9 Views: 1,570 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 Views: 882 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 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 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 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 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 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 Hi,
Check the attached example. |
Forum: Visual Basic 4 / 5 / 6 Aug 30th, 2007 |
| Replies: 3 Views: 938 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 Hi,
Attached file shows an example of this. |
Forum: Visual Basic 4 / 5 / 6 Aug 22nd, 2007 |
| Replies: 4 Views: 2,390 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 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 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 Views: 6,062 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 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... |