10,992 Topics

Member Avatar for
Member Avatar for silversurf

Hello everyone. I am trying to build a inventory and pos software with vb 6.0 and MS-Access as database. In one of my form I have the following code to call my inventory of a certain invoice number to print tag for my products. I am using a MSHFlexgrid with …

Member Avatar for silversurf
0
2K
Member Avatar for imti321

'the code is working properly only problem with this code is when the first line ends in excel and data is inserted in next Row "instead of inserting another row it copies the same content which is inseted last time in form "

Member Avatar for tinstaafl
0
382
Member Avatar for 2mhzbrain

Please show me what is the correct code to compare the DateAdded (2012-12-26 00:00:00 - its format inside MySQL) and DTPicker (01-01-2000 default format from user input) Sub FilteredQuery() cnDDR.Open "Driver={Mysql ODBC 3.51 Driver}; server=x; port=3307; database=x; user=x; password=x; OPTION= 1 + 2 + 8 + 32 + 2048 + …

Member Avatar for AndreRet
0
438
Member Avatar for John Mello

*to copy the codes of this sample article: just go to facebook to type this in your facebook search browser to find & added me: **jm amaro**, or you can add me as one of your friends in fb for i enable to share this topic.*Emphasized Text Here** or else, …

0
65
Member Avatar for rishif2

Hello experts i am using following code in order to truncate a ms access table Dim con As New ADODB.Connection Dim rec As New ADODB.Recordset con.Provider = "Microsoft.Jet.OLEDB.4.0" con.Open App.Path & "\db.mdb" Dim query As String query = "truncate table tbl" rec.Open query, con, 2, 3 con.close but its producing …

Member Avatar for AndreRet
0
2K
Member Avatar for tinstaafl

I'm working on a project that contains 3 different lists. 2 lists of 2 different controls, and 1 list of a custom class. I found that I needed each of these lists sorted. The problem with sorting a list of complex types is there's no default comparer for them. That …

Member Avatar for Ketsuekiame
0
301
Member Avatar for Tekito

This is an issue that I've discusses many times before, but never with a conclusive solution. I am trying to programmatically change the data range for an existing chart in Excel. My code goes something like this: [CODE] With WS.CharObjects(SelChart).Chart With .SeriesCollection(1) .XValues =DataWS.Range("A1:A101") '<-----ERROR! .Values = DataWS.Range("B1:B101") End With …

Member Avatar for gmcfarlane
0
267
Member Avatar for Divinedar

I am trying to reference a cell with a date from one worksheet to the other. I am using ='Statistics MVP'!A16 but it doesn't give me the date format it just gives me the number 41125 or any other number. When I format as a date form I get 1/0/1900 …

Member Avatar for Divinedar
0
109
Member Avatar for s1lentb0b

Hi I have an insert statement in my VB code that updates about 20 fields in sql. I pass through todays date and a set of values. This occurs on a button click event. My problem is if the button is clicked more than once the data is duplicated in …

Member Avatar for pritaeas
0
132
Member Avatar for StarTrekCafe

hi. a blind programming student, and did ask my lecturer, but he could not answer. has not done the talker classes before. i have a hangman self voicing game. it uses the anna voice, but looking for some more human sounding voices, like aussie, british, united states. did downloa and …

Member Avatar for lolafuertes
0
183
Member Avatar for killer88

For instance , i need store a database of a student.i will get all the details through the respective fields like name , no , mark1 , mark2 , mark3 etc.. nw i need to save this information . how do i do it ?. thanks :)

Member Avatar for tinstaafl
0
149
Member Avatar for joshl_1995

Hello, I was wondering if there is a way to display formatting in a richtextbox eg. If i put **test** the word "test" would be i bold (only the word "test" and the rest would stay the normal). or if i put `test` the word "test" would be i size …

Member Avatar for Dani
0
461
Member Avatar for jealii.jealii

I have a volunteer database and having trouble with genuine password protections. I have a "delete" button with this current code under Build Event: Private Sub delete_Click() On Error GoTo Err_cmdDelete_Click DoCmd.SetWarnings False If MsgBox("Delete this VounteerRecord. Are you sure?", vbQuestion + vbYesNo + vbDefaultButton2, "Delete?") = vbYes Then DoCmd.RunCommand …

Member Avatar for Begginnerdev
0
2K
Member Avatar for avk24

I am using excel 2007. In my file 6 sheets. 4 sheets is data record & 1 sheet is recorder sheet & monthly. Data record sheet name is : FY_2009, FY_2010, FY_2011, FY_2012 & FY_2013. In all above sheet : Part numbers mentioned in column "C2:C60000" Quantity in column "D2:D60000" …

0
132
Member Avatar for mark.scutt.7

Has anyone used a card reader with vb6 and can you recommend one to get? I want to issue cards with names for players so they clock in to start the poker game and during poker slide to clock out where the program will determine their position and any points …

Member Avatar for mark.scutt.7
0
113
Member Avatar for algafri
Member Avatar for killer88
Member Avatar for t2nator

I have a function that reads a text file that contains information about the sql database it connects to. It has to be invoked across multiple forms. How could I make it to where it is invoked once and then stores into variables that the program can continue to use …

Member Avatar for t2nator
0
1K
Member Avatar for adham.kemary
Member Avatar for rishif2

hello experts . . . there is one textbox , one label and one command button i have written following to print textbox content to label `label1.caption=text1.text` and when & is inputted in textbox then underscore(_) is placed in the place of &. and i know that we use & …

Member Avatar for AndreRet
0
241
Member Avatar for dwiniers

Hello there Good Day Guys! I need your expertise for vb6 guys i made a small program with command search button. Its working. My problem now when i search again with different category it shown this error [COLOR="Red"]Run-time error '3001' Argument are of the wrong type, or out of acceptable …

Member Avatar for AndreRet
0
2K
Member Avatar for kshami92

hi i m new to vb with sql.i made login form.but after that on main form some feature will be disbleed for ordinary user and that feature will be only enabled to admanistrater.so on main form a button will be enabled with specific password that is in backend so i …

Member Avatar for mark.scutt.7
0
109
Member Avatar for ImZick

Please can someone know how to trim this code. Any help will be appreciated If Range("D8") = "EBU 2" Then If ComboBox1.Text = "Level 4" Then Sheets("Main").Range("C9") = Sheets("Main").Range("C9") + 1 Sheets("Main").Range("D9") = Sheets("Main").Range("D9") + Range("K8") ElseIf ComboBox1.Text = "Level 5" Then Sheets("Main").Range("E9") = Sheets("Main").Range("E9") + 1 Sheets("Main").Range("F9") = Sheets("Main").Range("F9") …

Member Avatar for AleMonteiro
0
150
Member Avatar for ImZick

Im using VBA build inside excel is there a way to find if ComboBox has a value? for example i have 80 ComboBox and i want to check if they have a value like "A", "B", "C" and "D" and if the value is blank like "" then stop the …

Member Avatar for ImZick
0
187
Member Avatar for t2nator

I'm using the Visual Basic that comes with Visual Studio 2012 Utlimate, and everything I find online doesnt ever work. I am simply trying to make it to when a button is clicked the rows that are checked get deleted. Do While TodaysTrans.SelectedItems.Count > 0 TodaysTrans.Items.Remove(TodaysTrans->CheckBox.Equals(true)) Loop

Member Avatar for tinstaafl
0
151
Member Avatar for MutanaIK

Guys I want to get my iput from a barcode reader. Apparently I don have a barcode reader but, I just want to make a code ready to operate in a shopmif a barcode reader is going to be foun later but th software or program already made. Please help …

Member Avatar for tinstaafl
0
172
Member Avatar for DeanMSands3

I have a calculated field that takes the ID field of a table and pads it with leading zeroes. So far, I've gotten this to work: `String$(4-Len(Trim$(Str$([ID]))),"0") & Trim$(Str$([ID]))` Broken down, it takes the ID field, and string-ifies it. For some reason, this pads it with a space, hence the …

Member Avatar for adam_k
0
779
Member Avatar for Sally123

I was wondering if it was possible to bound 2 combo boxes to each other. the first combo box with a set of information. Based on what the user selects, the second combo box changes. this involves 2 tables. table 1 ProductID Descritption table 2 Id FK_ProductID Category example: the …

Member Avatar for sai ganesh
0
702
Member Avatar for ImZick

First i don't know if this will be right forum but i know its related somehow? I'm using excel developer visual basic and i have a combobox Dim x As String Dim y As String x = "O15" ' range With ComboBox1 If .Text = "" Then Range(x) = "" …

Member Avatar for tinstaafl
0
200
Member Avatar for kikiey

Am new to the world of networking on LAN, i need help to get me in the right direction in creating a LAN Chat that has the capability to send file across the network. i want this chat to be able to handle more than 50 connections. how to connect …

Member Avatar for jhai_salvador
0
114
Member Avatar for HibaPro

i get this error message when i try to connect from clinets pcs to login with the crystal repor but the forms is correctly connect to the DB srver but the server not this is the error : Crystal report viewer login failed detail : ADO error code: 0x80040e4d Source: …

0
56
Member Avatar for singh man
Member Avatar for chris.italia.31

Hello, I would like my Excel program to print the daily report on a remote printer connnected to Internet through a remote PC. Please help me with a solution. I'm thinking of using Google Print but any other solution is welcome. My best wishes for this New Year ! Cheers, …

Member Avatar for Ancient Dragon
0
91
Member Avatar for 2mhzbrain

WHERE Category = '" + CategorySorter.Text + "' AND DateAdded = '" + DateValue("DateEnd.Text") + "' " thats my query and its not working, if the user input a date(like this 12/25/12) in DateEnd.Text, i want to confirm if it is existing on a database

Member Avatar for AndreRet
0
270
Member Avatar for mklove999

I'm new on programming this VB 6, Advance thanks for those who'll reply. All opinions are open :3 (Sorry for poor English) === The program runs like this: I input the Student ID, then it searched using DAO now the student's info was shown up, what should I fill up …

Member Avatar for Jx_Man
0
110
Member Avatar for Siberian

I want to first off say, I don't know Visual Basic. I have a XML script that for a program that can only accept VB Scripts. I want a simple script to check whether, on it's own or if it can, from the XML file to see if a USB …

Member Avatar for Siberian
0
156
Member Avatar for HibaPro

hi all , when i install my vb project on clients machine and runing it its show this error : Cant generate SSPI Context , what should i do ????

Member Avatar for AndreRet
0
102
Member Avatar for HibaPro

when i need to install the vb6 project to network pcs this error is show : The program cant start because ActiveX Tools.dll is missing from your computer. Try to install the program to fix this problem. i search on internet for the dll required but i am not find …

Member Avatar for abelingaw
0
112
Member Avatar for silversurf

Hello everyone. I am making a form to backup my Ms-Access database in vb 6.0. I have a textbox (txtdestination) a progress bar (progstat) a command button (cmdbackup) and a few labels to show different info. I have the following code in my backup form : Dim mintCount As Integer, …

Member Avatar for abelingaw
0
2K
Member Avatar for rishif2

there is a picture file ( 40*100 ) and i wanna show this image in the background and so , this picture file should be repeated both horizontally and vertically as we do in Html and css

Member Avatar for tinstaafl
0
128
Member Avatar for memeDreamy

hello i'm doing a project i use visual basic 2010 i have an issue with the select case it suppose to be when you press the 2 and the 3 it gives you all the names start with (a&d) (a&e) (a&f) or (b&d) (b&e)...etc. it works fine just the error …

Member Avatar for tinstaafl
0
79
Member Avatar for mferarri

Hi DaniWeb Forums, The I'm making a simple timer. The label flashes every time the caption changes (this is the problem). See code below. If you run this, ensure to that timer interval property is 1000 for the timer and Label1 caption property is set to "". TY. Dim sec …

Member Avatar for samsylvestertty
0
629
Member Avatar for Alessandrorenzi

Hi, How can I do to get motherboard and processor serial number in VB6? I am able to get HD serial number with this code: Option Explicit Private Type DRIVEINFO HDDSerialNum As String End Type Private Sub Form_Load() Dim info As DRIVEINFO Dim objs As Object Dim obj As Object …

Member Avatar for AndreRet
0
769
Member Avatar for mklove999

Run-time error '-2147217887 (80040e21)' Multiple-step operation errors. Check each status value. === The one highlighted was: **Adodc2.Recordset.Update** Private Sub Command1_Click() Adodc2.Recordset.AddNew Text13.Text = Label19.Caption Text14.Text = Label15.Caption Label5.Caption = Text6.Text + "-" + Text7.Text Label3.Caption = Text1.Text Label21.Caption = Text10.Text Text11.Text = Text6.Text Label17.Caption = Text3.Text + ", " + …

Member Avatar for AndreRet
0
180
Member Avatar for sarman.boyslo

hi all, i'm very - very newbie here, i need a help, i try to connect arduino with vb6, i want to display data from arduino to vb6, lets say the data is : "the distance : XX m", the problem is when i want to put data via mscomm.input …

Member Avatar for AndreRet
0
552
Member Avatar for BombAppetit

As the title suggest, I don't know how to add item to a multiple column list box. When I do the usual ListBox1.AddItem "haha" it only adds to the first column. How do I populate the others? Columns property has been set to, say, 3. I googled out this issue …

Member Avatar for jksjai
0
3K
Member Avatar for mklove999

I'm really new in ADO for just a substitution on Data Control (I cannot dl any access 2003 D:) --- Whenever I enter command3, it says: *Compile Error: Method or data member not found* and the highlighted one was **.EOF** Code: Private Sub Command3_Click() Adodc1.Recordset.MoveFirst Adodc1.Recordset.Find "SID = '" & …

0
144
Member Avatar for logamuthu

I have been using Qbasic 1.1 in MS DOS 6.22 PCs upto P4. In view of the changing hardware scenerio, I wish to migrate to VB inside Windows 7 32 bit machines. Should i rewrite all code in VB or can I import .bas files created in Qbasic 1.1 into …

Member Avatar for logamuthu
0
132
Member Avatar for Skate Bart

When the button is clicked, I want the file (it's a XPS document) to be opened in windows. The file will be in the same directory as the visual basic project. Therefore, I need the code to open the file using "app.Path". Any solutions?

Member Avatar for rishif2
0
946
Member Avatar for Skate Bart

When the button is clicked, I want the file to be opened. The file will be in the same directory as the visual basic project. Therefore, I need the code to open the file using "app.Path". Any solutions?

Member Avatar for AndreRet
0
4K

The End.