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

data type mismatch in criteria expression

hey i get a error data type mismatch in criteria expression i dont know what is missng :confused: this is the save code Code: CN.Execute "INSERT INTO Appointments (AppID, AppDate, AppTime, AppCust,...

View Article


VB 5.0 in Windows 8

I am not being able to use Components under Project in VB 5.0 when running in Windows 8 environment. I also could not register dynamic link library (.dll) or active X (.ocx) controls using regsvr32...

View Article


OLE container fails to render DOCX, XLSX

I'm currently working with a legacy VB6 application that uses an OLE container ActiveX component to preview Office documents. It works well with classic file formats but fails to render more modern XML...

View Article

[RESOLVED] type mismatch when searching date

hey im trying to search my listview by date i get error type mismatch why? this is the datepicker Code: Private Const mstrDateFormat As String = "dd-mm-yyyy" Private Sub DTPicker1_CloseUp()     Dim lvi...

View Article

VB6 - How to check if Process is running and if not then delete files.

Hi, I am making a program extract the program it executes and when the process ends then delete the extracted files. To execute. vb Code: Shell App.Path & "\filename.dll", vbNormalFocus To delete....

View Article


[RESOLVED] If no item in listview is selected and cancel button is selected,...

Good morning, I'm using the below to populate text boxes etc when clicking on a listview item. Code: Private Sub listview1_ItemClick(ByVal Item As MSComctlLib.ListItem) Dim myLoan strSQL = "SELECT...

View Article

[RESOLVED] how to create this multiple ping result

the situation is this. I have this database record of hostname or ipaddress and I would like to start pinging all of them one by one and show the hostname with corresponding result of the ping in a...

View Article

Unformatted data and single type variable

Hi all, I have this problem, I have some numeric data to write in a file. I receive this data as a string from a device and then, I use the statements Open path For Binary As #nFile Put #nFile, , data...

View Article


Image may be NSFW.
Clik here to view.

Flip An Image

Picture 1 is what I create by code. I want to copy it to Picture 2 and flip it vertically as shown below. Can I do this using either BitBlt or PaintPicture? How? Attached Images  

View Article


Need help with reading current line in SSH session.

This is kind of a continuation of a previous thread, but I'm making a new one to keep things simple. I have a script that loops. Once it reaches line 11 (after an up arrow command), I need it to stop....

View Article

[RESOLVED] Converting decimal values into time

This appears to be the last problem I should have to solve in my program and that is converting the time decimal output back into time format, hh:mm, I have devised a formular that works on paper so to...

View Article

subtracting decimals - what am i missing?!

Hi, i'm sure this is really simple, but i'm having trouble! All i want to do is to subtract one decimal value from the other, this is basically my code: Dim myDec1 as double Dim myDec2 as double Dim...

View Article

Map Disk file created by another Process to Memory

I have an imaging system that uses an activex control (that is not mine) to do file based format conversions. It is needed to preconvert the files prior to displaying them. So lets pretend I have a...

View Article


dynamic multidimensional arrays?

Hi, I've got a bit confused with how to do a dynamic multidimensional array and wondered if anyone could help me out please? I seem to be Ok with storing values in a single array using this code........

View Article

Best way to add print function to my program

I have been looking around for ways to print the new or edit screens of this work order program I edited to work for us. I am not that savvy with VB6, so will need a lil hand holding to try and get...

View Article


Using KEYPRESS or KEYDOWN in MDI Form

Hi, I am surprised when see that there is no KEYPRESS OR KEYDOWN event in MDI Form, is there any other way / API to use KEYPRESS / KEYDOWN event in MDI

View Article

Quotes in CSV File

HI ALL Could one of you solve this problem for me please I am trying to save as CSV file with quotes I.E "001" trying using chR(34) this does work when reading the CSV file in notepad but when reading...

View Article


VB6 - Convert Variant to Node

I am using a For Each loop to go through a Variant array in VB6. At one point, I want to convert the element of the loop (elem), which is a Variant, to a Node. Code: Dim elem as Variant For Each elem...

View Article

VB6 - Get accessor not working for array property

I have two properties in my VB6 code: Code: Public Property Get PropFileID() As Long     PropFileID = m_FileID End Property Code: Public Property Get PropFileIDArray() As Long()     PropFileIDArray =...

View Article

Copy from PDF, paste to word, search keyword-word activate issue

Hi All, I am trying to search for a keyword in a pdf file and retrieve that paragraph. First i open the pdf file, copy whole content, paste into a word doc and then run the macro which will give me the...

View Article
Browsing all 21319 articles
Browse latest View live


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