Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Browsing all 21090 articles
Browse latest View live

Date Difference

Hi I have written this code & it is returning value -2. Date value is "26/02/2013" DTPicker1.value is "28/02/2013" MsgBox DateDiff("d", DTPicker1.Value, Date) Thanks

View Article


Copying table contents

Im trying to copy the contents of my Inventory Table to CustomPO Table. No error occurs, but I won't copy. What seems to be the problem? :confused: Code: Private Sub Copy_Table() Call d2("Select * from...

View Article


Image may be NSFW.
Clik here to view.

Read from one tree and overwrite another tree with the values

I have two treeviews(TV1 and TV2) and need to sequential read each node label until I encounter a space in the label name. Then I need to write that value directly to the second tree in the same place....

View Article

Error - Text Property is read-only

Hi Set rs = New ADODB.Recordset If rs.State = 1 Then rs.Close rs.Open "temp", cnn, adOpenDynamic, adLockOptimistic, adCmdTable On the line cmb1.Text = rs!name it is giving error "Text property is...

View Article

Recordsets

I have a query which returns name, address, telephone, addressL1, addressL2, addressL3, email, fax from a table. eg sql="SELECT * FROM people_info where person_id='1234'" I then set a variable to store...

View Article


getting angle from two point position (in Italian)

Hello everybody, I'm new in this space, i'm going to post this how to message in italian, early I'll translate in English, but for the moment You could use google translator, please pardon me, :)...

View Article

Help with Oracle Query

How to get percentage for the numbers in the Qty Column? Can someone please help. select (SET) as Part_Number ,(COUNT (1)) AS Qty from US8 where CTYPE = 'DPPO' AND STYPE ='STP' AND DATE= '20130223'...

View Article

Vb help

I have a combobox, which have people names in it. For an John R Wright. But what I'm trying to do is, how can I send the name to the listbox, but only the first the 5 char of the person name. For an...

View Article


run time error 52

I was running an application for checking parameters in excel file when the messege showed " run time error 52". Please help how to solve this. below is the area where i encountered this problem....

View Article


Data between two dates. Query not working.

Hi All, This may seem simple for you experts. I need to extract data from a table between two dates. User will input a date and from that date +7 days data. Using Access 2007 and VB6. Format is...

View Article

DoEvents Replacement

In my program, I wanna replace DoEvents with something faster and close to how C++ does it. The only events I wanna check are painting events, mouse events, and keyboard events, window moving and...

View Article

Return of focus firing optMenuOption_Click event

I maintain a number of VB6 apps and in each case they start with a plain screen which acts as a menu. The menu itself consists of a number of option controls. When the user clicks an option, Sub...

View Article

Image may be NSFW.
Clik here to view.

[RESOLVED] help: update table

Code: Private Sub Command1_Click()     Dim loadrs As ADODB.Recordset     Dim loadcn As ADODB.Connection         Dim loaddbcon As New DLLConnectionFunction     Set loaddbcon = New DLLConnectionFunction...

View Article


Create plugin for VB6 app within VB6?

In VB6, is there a way you can create a custom plugin for your VB6 app using VB6 to create that plugin? if so - how?

View Article

Calculate the current date of birth if user only know their age

Hi, How to create function to calculate date of birth base from the age. User know their age, but forget their birth date. I want to create function like this. Please help ...

View Article


[RESOLVED] Creating a Login screen and connecting it to Access

Hi, I've never really created a login screen in VB and connected it to a table in MS Access before. So I'm supposed to create a login screen and after gaining access to it, a main menu form needs to...

View Article

DataArrival Unexpected Error

The DataArrival event is fired but when program attempts to GetData I get the following error 40006 Wrong protocol or connection state for the requested transaction or request Code: Private Sub...

View Article


Count files in folders, subfolders on remote servers

Hi all, complete noob to vb. OK.. so I have this. It does great at counting the number of files in c:\temp and it's subfolders. But it pops it up in a msgbox. What I really need is something that will...

View Article

VB6 complied Webbrowser html probem

I have a problem with my application when I compile my code. I have a stand alone form that has the webbrowser control. I generate an html page that I store as a file on a hard drive. After I've...

View Article

Image may be NSFW.
Clik here to view.

Missing Records from scanned file

This is a combination of 2 routines used to generate and retrieve records of lab tests. this code retrieves the numbers to be compared to Attachment 97117 and stores them in text.txt Code: Private Sub...

View Article
Browsing all 21090 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>