Forum: Visual Basic 4 / 5 / 6 May 7th, 2009 |
| Replies: 7 Views: 1,091 Hi,
Why do you want to use "AppendChunk" for simple string..?
Try This :
nVNBR = "hi how are yodsf sdf"
rsVen("BITS") =nVNBR
rsVen.Fields("BITS_LENGTH") = 19
' Or |
Forum: Visual Basic 4 / 5 / 6 Jan 14th, 2009 |
| Replies: 4 Views: 1,038 Hi,
Declare this API at the top :
Private Declare Function SHGetFolderPath Lib "shfolder.dll" _
Alias "SHGetFolderPathA" _
(ByVal hwndOwner As Long, _
ByVal nFolder As Long, _
... |
Forum: Visual Basic 4 / 5 / 6 Jan 9th, 2009 |
| Replies: 10 Views: 1,210 Hi,
Yes, Little bit tweaking of my code, will do the job:
Dim i As Integer
Dim TAmt As Currency
TAmt = 0
For i = 1 To Grd.Rows-1
TAmt = TAmt +... |
Forum: Visual Basic 4 / 5 / 6 Jan 7th, 2009 |
| Replies: 10 Views: 1,210 Hi,
Try This :
Dim i As Integer
Dim TAmt As Currency
TAmt = 0
For i = 1 To Grd.Rows-1
TAmt = TAmt + Val(Grd.TextMatrix(i, 8)) |
Forum: Visual Basic 4 / 5 / 6 Nov 20th, 2008 |
| Replies: 8 Views: 1,156 Hi,
Index should be the Index name and not the Fieldname..
Data1.Recordset.Index = "indStatus"
Regards
Veena |
Forum: Visual Basic 4 / 5 / 6 Nov 4th, 2008 |
| Replies: 4 Views: 648 Hi,
Try this :
Report.Printout False
Without vieiwng the report..
Regards
Veena |
Forum: Visual Basic 4 / 5 / 6 Apr 7th, 2008 |
| Replies: 1 Views: 2,075 Hi,
After Selection of ComboBox, To filter out records use this query:
"Select CI.name,I.ServiceID,P.packagename,P.duration,P.price,I.date,I.timeIn,I.timeOut
From CustInfo CI, InDate I,... |
Forum: Visual Basic 4 / 5 / 6 Apr 6th, 2008 |
| Replies: 6 Views: 2,035 Hi,
Write this in FormLoad event:
Me.MousePointer = 99
Me.MouseIcon = LoadPicture("C:\windows\cursors\3dgno.cur")
Change the path accordingly |
Forum: Visual Basic 4 / 5 / 6 Oct 17th, 2007 |
| Replies: 9 Views: 8,392 Hi PlusPlus,
What is AdoReminder....?
if it is a Connection object, then use Execute method..
say:
adoreminder.Execute = "INSERT INTO tblreminder([user-id]) SELECT tbluser.id FROM... |
Forum: Visual Basic 4 / 5 / 6 Oct 11th, 2007 |
| Replies: 3 Views: 2,262 Hi,
One more easier way, is to keep another FlexGrid Hidden, with same number of Rows and Cols as the main Flex Grid.
Save the Info in 2nd grid, corresponding to Same Textmatrix of the main... |
Forum: Visual Basic 4 / 5 / 6 Aug 20th, 2007 |
| Replies: 6 Views: 4,080 Hi,
It shud be some thing like this:
rsinPers.MoveFirst
Do
rsinPers.Find "Name='" & M.qBW![Personnel2] & "'"
If rsinPers.EOF
Exit Do |
Forum: Visual Basic 4 / 5 / 6 Aug 15th, 2007 |
| Replies: 2 Views: 12,273 Hi,
Directly on messagebox, u cannot show ProgressBar. An alternative is to Show another Form in Modal Form, And Place Progress bar on that and Increment the status, from calling form..
... |
Forum: Visual Basic 4 / 5 / 6 Aug 1st, 2007 |
| Replies: 4 Views: 619 Hi,
Set this property of Combobox in Propertysheet:
Style = 2 DropDownList
REgards
Veena |
Forum: Visual Basic 4 / 5 / 6 Jul 31st, 2007 |
| Replies: 5 Views: 2,458 Hi,
use "Microsoft SS tab Control"..
U have to add it to ur tool box from this menu:
Project>>Components..
Regards
Veena |
Forum: Visual Basic 4 / 5 / 6 Jul 19th, 2007 |
| Replies: 15 Views: 2,043 Hi,
Check the following:
DB2 ADO Connection Object is open or not.
Declare RST
Dim RST As New ADODB.Recordset
Set RST=Nothing
RST.Open "select Project_Name,BU from Risk_Analysis", db2,... |
Forum: Visual Basic 4 / 5 / 6 Jun 21st, 2007 |
| Replies: 2 Views: 1,961 Hi,
Directly u cannot Configure the ToolBox in VB6..
There's a way around.
Create any dummy Project , add a Common Dialog Control and all the required OCX Controls. Now Place all the Controls... |
Forum: Visual Basic 4 / 5 / 6 May 29th, 2007 |
| Replies: 3 Views: 1,997 Hi,
Open a New Project. Place A Command Button on the Form.
Copy and Paste this Code Form Level:
Option Explicit
'
Dim TFlag as Boolean
Private Declare Function FindWindowEx Lib... |
Forum: Visual Basic 4 / 5 / 6 Jan 15th, 2007 |
| Replies: 9 Views: 1,726 Hi,
I noticed this after posting the code.
Sorry that was :
If iPos>0 Then
sSQL = Left(sSQL,(iPos-1))
End If |
Forum: Visual Basic 4 / 5 / 6 Jan 9th, 2007 |
| Replies: 2 Views: 6,267 Hi,
Use Late Binding of the .dll, like Create object.
Dont directly add the reference in VB6 (Calling project).
Dim MyObj As Object
Set MyObj = CreateObject("MyProj.MyDll")
This code... |