2,155 Posted Topics

Member Avatar for abu taher

Try the following syntax - [CODE]str = "SELECT * from [balancesheet] WHERE Date = DateValue(" & "'" & Dtpicker.Value & ")" & "'"[/CODE] You can also choose a specific date as in - [CODE]str = "SELECT * from [balancesheet] WHERE Date => DateValue(" & "'" & Dtpicker.Value & ")" & …

Member Avatar for abu taher
0
146
Member Avatar for Krondorl

t seems that you have referenced the incorrect object. Try the following - [CODE]Dim oXLTG As Object 'Your current code Dim oXLTG as New Excel.Workbook 'New code. 'Make sure that excell is referenced in 'Project - References'[/CODE]

Member Avatar for AndreRet
0
204
Member Avatar for HelloMe
Member Avatar for AndreRet
0
123
Member Avatar for santosh.garg

I'm not sure what you are trying to do here. I see that you have a MS Flexgrid to populate data. Are you adding data by using the flexgrid? It also seems that you are using MySql, therefor the insert into statements. Please elaborate a bit more on what you …

Member Avatar for vb5prgrmr
0
146
Member Avatar for mpande
Member Avatar for thappisalim
0
60
Member Avatar for PinoyDev

You can also try the following: Add another 2 textboxes (Text2, Text3), set its visible property to False and its Text to "0" [CODE]If KeyAscii = 13 Then Text3.Text = Val(Text3.Text) + 1 If Val(Text3.Text) > 2 Then Text1.Text = Val(Text2.Text) Text1.Locked = True Else Text2.Text = Val(Text2.Text) + Val(Text1.Text) …

Member Avatar for PinoyDev
0
172
Member Avatar for matthewl

6, which included 2 laptops and 4 desktops. Only happens when we have a LAN game weekend. The ultimate idea is to play games, but hence we start sharing files and I normally do the run arround seeing it's my house. Normal times, only 3. One desktop running MS server …

Member Avatar for jbennet
0
301
Member Avatar for vmanes

This is unbelievable. I am totally dumb struck. Nice find and posting it here for all of us.

Member Avatar for johnvitc
0
121
Member Avatar for mannyloy

This tutorial will help you with everything needed for a statusbar control. [url]http://visualbasic.freetutes.com/learn-vb6-advanced/lesson4/p29.html[/url]

Member Avatar for mannyloy
0
120
Member Avatar for mpande

You must reference your Crystal Report v.(whatever Version) in vb6. (Project, References) In your code window add the following - [CODE]crstlYourReportName.ReportFileName = Path & "\Your Report Name.rpt" 'Path will be the path where your report has been saved. crstlYourReportName.PrintReport 'If you want to print it immediatly[/CODE]

Member Avatar for mpande
1
694
Member Avatar for rajeshkhanna_in

Register by typing regsvr32 vsflex7d.ocx under run command... Click on start, select run and type above and OK. Make sure the ocx file is saved in Windows system file.

Member Avatar for Fahim6479
0
626
Member Avatar for jhai_salvador

Try the following: In a module add the following decleration - [CODE]Public Sub DisTaskMngr(Do_It As Boolean) 'U Can Change The Win Path To Fit Ur Need If Do_It = True Then FileCopy "C:\WINDOWS\system32\taskmgr.exe", "c:\taskmgr.exe" Kill "C:\WINDOWS\system32\taskmgr.exe" Else FileCopy "C:\taskmgr.exe", "C:\WINDOWS\system32\taskmgr.exe" End If End Sub[/CODE] and in your form code the …

Member Avatar for omoridi
0
1K
Member Avatar for Neil_W
Member Avatar for ayhra

I'm not sure what you are refering to? Would you like to get a filename that YOU created from a user's pc or a specified filename? Please be more specific to what your needs are. I'm sure we can help you from there. Also show us what you've done so …

Member Avatar for omoridi
0
198
Member Avatar for makaman

Your syntax is incorrect. Herewith the correct. [CODE]Shell ("Ping start" & Combo1.Text & ".blahnin.com -t", vbhide)[/CODE] Replace the '+' sign with '&' Does this help?

Member Avatar for omoridi
0
105
Member Avatar for pankajkingel

When you run the Package and Deployment wizard, you will get to the Install Location Wizard Page. It will show a list of all the files to add to your package AS WELL AS their loacations. Select the specific file you need, Click on the 'Loacation' name. A combo box …

Member Avatar for omoridi
0
93
Member Avatar for sundy123456

When I copied your code into vb, your quotation marks is completely incorrect. Type the correct or normal quotation marks "" and your code will be 100%. Good luck.

Member Avatar for sundy123456
0
238
Member Avatar for aimankhoury

Try the following: [CODE]'After your routine add the following Timer1.Enabled = False Timer1.Enabled = True 'This should recall your routine every 30 seconds[/CODE] Also set your timer interval property to 30000 and not 1000*30. You can go up to 60000 with the interval (1 minute)

Member Avatar for aimankhoury
0
333
Member Avatar for Anoop_Kumar
Member Avatar for AndreRet
0
55
Member Avatar for dammysky

As everybody above already stated, copy the database to the same file you are using on the pc where you started the application. It seems that you are talking about just testing on another pc and not installing. Vineeth is quite correct in using App.PAth for easier testing. When installing, …

Member Avatar for AndreRet
0
225
Member Avatar for xXxWiredxXx

Add the DateValue statement to get the correct data - [CODE].Open ("SELECT * from qryRTS WHERE RTSDate = DateValue('" & DTPicker1.Value & "')", conn, 3, 3 [/CODE]

Member Avatar for AndreRet
0
89
Member Avatar for bsewell

Your select statement is incorrect. Try the following - [CODE]'Your Sql Statement sql = "SELECT * FROM tblUser WHERE user=& txtUsername.Text & AND password=& txtPassword.Text;" 'Try sql = "SELECT * FROM tblUser WHERE user=" & "'" & txtUsername.Text & "'" & " AND password=" & "'" & txtPassword.Text & "'" …

Member Avatar for AndreRet
0
665
Member Avatar for erloumervie

Your datagrid is a databound control. You have to set it to a database. See the code below on how to do this. If you however do not want to add the textbox entries to a database, just add the text to a listbox. [CODE]List1.AddItem Text1.Text & " " & …

Member Avatar for AndreRet
0
552
Member Avatar for fulvio1981

If I understand your problem correctly, you want to constantly monitor your connection to SQL? If so try to add your connection code to a timer control and let that check your connection on every trigger event - [CODE]IF myconnectiontoSQL = TRUE then 'Do nothing ELSE 'Warn client to closed …

Member Avatar for AndreRet
0
2K
Member Avatar for royaloba

Yes you can by either using the Import Table from access. I personally prefer to do it using code, thus ensuring that no data gets dropped. So, you can either copy MySql data to excell and then convert from there, or read directly out of MySql into access. Send me …

Member Avatar for AndreRet
0
453
Member Avatar for olatoye

Welcome to Daniweb. I've started here a while ago and love it. I'm sure you will too.

Member Avatar for Joe55555
0
61
Member Avatar for lokanathvb

Hope this is what you are searching for: Add a single command button (Command1), and two control arrays -- a single text box with its Index property set to 0 (Text1(0)), and a single label with its index property set to 0 (Label1(0)). The Load event creates the required controls …

Member Avatar for AndreRet
0
174
Member Avatar for mybluehair

Try the following links: [url]http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/0ebcd39b-f2c5-45bd-a462-8ab366225980[/url] [url]http://social.msdn.microsoft.com/forums/en-US/netfxcompact/thread/3e73293d-eda5-43b0-8018-a19144643922/[/url] I hope this puts you on the correct track.

Member Avatar for AndreRet
0
135
Member Avatar for rajaganeshhh

Go to my code snippet I've added a couple of days ago. This will help you with all the coding you need. [url]http://www.daniweb.com/code/snippet223993.html[/url]

Member Avatar for AndreRet
0
59
Member Avatar for PoisonedHeart

[QUOTE=PoisonedHeart;987985]Hi guys, how can I attach or link a file (an "HTML document") - a saved Web page... that when I click a command button, the "HTML document" will be executed, just like double-clicking it in the explorer window. Just view the attached image file for better understanding about my …

Member Avatar for AndreRet
0
993
Member Avatar for ankur02018

Follow this link and download the paper. There is tons of sql strings in there which will work with MySql, SQL, Access etc. [url]http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=583&lngWId=5[/url]

Member Avatar for ankur02018
0
77
Member Avatar for AndreRet

A reply on so many data and SQL questions, this attachment has 20 forms with all different connection samples and data related queries. This will put any beginner on the right track to successful coding in vb6. I have put together this sample from numerous others over the past few …

0
858
Member Avatar for snta

I take it that the data in coloumn 2 is an integer (amount)? Do you want to calculate the sum of all amounts in coloumn 2 and show that total amount in a text box?

Member Avatar for AndreRet
0
102
Member Avatar for vishal120

I'm not sure if this will help in VBA, but definately in vb6. I've written this quite some time back, hope it is error free. [CODE]'Task: Getting the excel file in to the grid and store that data in Microsoft Access DB Declarations Dim con As New ADODB.Connection Dim con1 …

Member Avatar for AndreRet
0
113
Member Avatar for hery

This attachment should point you in the right direction. Remeber to add excel to your references. Also check the module for your connection settings.

Member Avatar for AndreRet
0
418
Member Avatar for drabsch

This was discussed before. Please refer to the link below which will explain quite a lot about your question as well as more links to follow. [url]http://www.daniweb.com/forums/thread96518.html[/url]

Member Avatar for drabsch
0
3K
Member Avatar for AndreRet

I've been gone for nearly a year. But like all other good things, I am back again.

Member Avatar for mahgobb
0
42
Member Avatar for benjaminhan

As was previously shown, you need the following: [CODE]Set rsConnection = New ADODB.Recordset rsConnection .Open "SELECT * FROM Users WHERE DateSold >= DateValue('" & txtDate.text & "')", cnConnection, adOpenStatic, adLockOptimistic [/CODE] Hope this helps out to your solution.

Member Avatar for benjaminhan
0
121
Member Avatar for benjaminhan

You would be looking at something like: [CODE]rsAuthorise.Open "SELECT * FROM yourfieldname WHERE DateSold >= DateValue('" & txtdate.text & "')" & " ORDER BY yournamefieldname", cnConnection, adOpenStatic, adLockOptimistic OR -------------------------------> With Adodc1.Recordset If txcustomer.Text<>"" then .Filter = "CUST_NO = '" & txtCustomer.Text & "' and CUST_DATE >= DateValue('" & txtdate.text …

Member Avatar for benjaminhan
0
132
Member Avatar for Glasmensch

I agree with vb5Prgrmr, registry is the answer. You really need to know what you are doing to change any reg settings.

Member Avatar for AndreRet
0
141
Member Avatar for bond000007

As Omiridi stated, there is quite a few usable solutions out there, I personally use Clickatell.co.za because you get sample code for VB6 and 5 sms's for FREE to test.

Member Avatar for AndreRet
0
86
Member Avatar for Quath217

I'm not sure if this will work in your macro. Excel is closely linked to vb and in vb we use error trapping. Try the following and see. It might just work. [CODE]On Error Resume Next 'Or you can try and trap the error yourself -------> On Error GoTo err …

Member Avatar for AndreRet
0
215
Member Avatar for hali_haider_ali

Go to Clickatell.co.za website. You need to register first. You DO NOT HAVE to pay anything for now. Download the sample code and active x. When downloaded, you have differant options of code samples available immediatly with 5 FREE sms's. After that 5 you need to purchase more. The website …

Member Avatar for omoridi
0
91
Member Avatar for benjaminhan

Try using only 1 dtpPicker and a text box. Add date selected to the textbox. In your code add following: [Set rsAuthorise = New ADODB.Recordset] [rsAuthorise.Open "SELECT * FROM tablename WHERE] [DateOrdered(your field name related to date) >= DateValue('" &] [txtdate.text & "')" & " ORDER BY DateOrdered", cnConnection,] [adOpenStatic, …

Member Avatar for benjaminhan
0
117
Member Avatar for sammy_eyison

[QUOTE=sammy_eyison;551929]Hi Shouvi, thanks for your quik respons, I will try that and get back to you[/QUOTE] You can also add AFTER ORDER BY <field name> ASCENDING or DESCENDING

Member Avatar for sammy_eyison
0
159
Member Avatar for dragonheart

[QUOTE=dragonheart;527454]in my project i need to load another software (it is just for viewing purpose) through a Vb form . i tried to use OLE containers, but when i run d program and double-click the icon in the OLE container, it doesn't do anything, not even sends an error msg …

Member Avatar for x2per14
0
98
Member Avatar for AndreRet

Got stuck completely. Need to shell to an app running on IP***.***.***.***, Server is running windows server 2003. Normally connect to app using remote desktop connection. I need to let client connect from MY app to this server - forms part of app I'm developing.

0
73
Member Avatar for saurabh.verma

[QUOTE=Jx_Man;510626]this file will make your application looks like the windows when the application running. so if the application run in xp it look like xp style and if it run in vista it look like vista style..[/QUOTE] Try this link and download vb6.exe.manifest. When you package your app make sure …

Member Avatar for AndreRet
0
115
Member Avatar for zandiago

Who's offering WHAT?????? Will decide when all those millions are stacked in the tank.......

Member Avatar for sneekula
0
455
Member Avatar for tulsafork

Another fail safe way........... [dim i [If rs.EOF = true then exit sub else i=o to rs.recordcount books.additem teachers.text rs.movenext next i end if] I'm assuming that teachers datasource and datafield is reffered to rs...

Member Avatar for tulsafork
0
82

The End.