Post your Vb 6.0 Questions Here

A Member? Please Login  
type your username and password to login
Date: May 16, 2008, 04:18 PM
201187 members and 113369 Topics
Latest Member: Jc Arinze
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Programming  |  Post your Vb 6.0 Questions Here
Pages: (1) (2) (3) Go Down Send this topic Notify of replies
Author Topic: Post your Vb 6.0 Questions Here  (Read 3089 views)
hart
Re: Post your Vb 6.0 Questions Here
« #64 on: October 08, 2007, 03:55 PM »

luckyco
 i will like to programme in microsoft access. please help me out with some material to enable me be acquianted with the stuff.
my email. faradelucky@yahoo.com
one love.
luckyCO
Re: Post your Vb 6.0 Questions Here
« #65 on: October 17, 2007, 12:24 PM »

You mean u want to program in vb using microsoft access as your backend?
DevDel (m)
Re: Post your Vb 6.0 Questions Here
« #66 on: October 23, 2007, 02:51 PM »

with VB 6 applications that I created, How can I solve the problems of installation of varying operating systems? All those DLL files you know,
ELIJAHLOVE
Re: Post your Vb 6.0 Questions Here
« #67 on: October 25, 2007, 11:17 AM »

please i need a b code that would help me link my vb form to my access page.
the problem is that am working on a databasesoftware. so i designed a form in vb to fill in certain information into my access table. but the two are not communcating.

i used db for connection string and rs for Recordset
i.e
DIM DB AS CONNECTION
DIM RS AS RECORDSET

SOME OF THE FIELDS I USED ARE
NAME
AGE
SEX
STATUS.

PLEASE USE THIS TO HINT ME. TANKS SO MUCH
ELIJAHLOVE
Re: Post your Vb 6.0 Questions Here
« #68 on: October 25, 2007, 11:38 AM »

I NEED A VB6 CODE THAT HELP ME LINK MY VB FORM TO MY ACCESS PAGE.

I AM WORKING A SIMPLE DATABASE PROGRAM THAT WOULD TAKE INPUT FROM USER AND SAVE IT IN AN ACCESS DATABASE.

MY FIELDS ARE
AGE
NAME
SEX
STATUS

PLEASE KINDLY USE THESE FIELDS AS THEY APPEAR ON BOTH THE VB INTERFACE AND THE ACCESS TABLE.
THANK YOU SO MUCH
ELIJAHLOVE
Re: Post your Vb 6.0 Questions Here
« #69 on: October 25, 2007, 11:42 AM »

I NEED A VB6 CODE THAT WILL HELP ME LINK MY VB FORM TO MY ACCESS PAGE.

I AM WORKING A SIMPLE DATABASE PROGRAM THAT WOULD TAKE INPUT FROM USER AND SAVE IT IN AN ACCESS DATABASE.

MY FIELDS ARE
AGE
NAME
SEX
STATUS

PLEASE KINDLY USE THESE FIELDS AS THEY APPEAR ON BOTH THE VB INTERFACE AND THE ACCESS TABLE.
THANK YOU SO MUCH
MY EMAIL ADDRESS IS gbenga89@yahoo.com
ELIJAHLOVE
Re: Post your Vb 6.0 Questions Here
« #70 on: October 26, 2007, 02:43 PM »

PLEASE KINDLY HELP OUT .
I NEED YOU TO HELP ME, AM HAVING PROBLEMS LINKING MY VB FORM TO AN ACCESS PAGE USING ADODB CONNECTION AND RCORDET.
MY ACCESS FIELDS: ARE AGE, SEX,LEVEL. THESE FIELDS ALSO APPEAR ON MY VB 6 FORM. WHAT I NEED IS TO DESIGN A DABASE PROJECT WHICH WILL HAVE A VB6 INTERFACE, SUCH THAT WHATEVER THING IS FILLED GOES INTO AN ACCESS TABLE CALLED "DATA"

PLEASE SAVE MY SOUL. I VE BEEN BATTLING WITH THIS FOR LONG
luckyCO
Re: Post your Vb 6.0 Questions Here
« #71 on: October 26, 2007, 10:30 PM »

ELIJAHLOVE Am sorry am out of net because of out internet is down.

To connect ot MS Access database do the following

dim db as new adodb.connection
dim rs as new adodb.recordset

db.connectionstring=<"your connection">
db.open
set rs=db.execute("Select * from datatable")

'to insert data do the follwoing

rs.addnew
rs.fields("name")="Elija"
rs.fileds("Age")=27
rs.fields("Address")="Abuja"
rs.update

'to update do the following

rs.update "name","Elija"
rs.update "Age",27
rs.update "Address","Abuja"

' to delete
rs.delete

at the end

rs.close

let me know if you have any problem

Please reduce how you program in access use either MySql or SQLserver,Oracle
luckyCO
Re: Post your Vb 6.0 Questions Here
« #72 on: October 26, 2007, 10:33 PM »

DevDel VB is only used on Windows Operating system. If you want to interoperable program consider Java.
scientist (m)
Re: Post your Vb 6.0 Questions Here
« #73 on: October 27, 2007, 02:05 PM »

 Grin Grin Grin I am currently developing an account system [savings account] prototype using vb 6.0, although the scope is limited to only making deposits, withdrawals  Grin Grin Grin  i have a slight problem with the account statement form Cry Cry Cry  How can previous updates on any given particular account be saved, such that when I want it to generate a statement of account for any given account number, all previous transactions that were carried out by the client or customer would be shown on the form or report?  Grin Grin Grin THANKS FOR YOUR HELP.
luckyCO
Re: Post your Vb 6.0 Questions Here
« #74 on: October 31, 2007, 11:59 AM »

Issue and execute this sql statment and  Select * from <your Table name> where ClintID=<ClientID>
It will provide that to u
scientist (m)
Re: Post your Vb 6.0 Questions Here
« #75 on: October 31, 2007, 05:19 PM »

Quote from: luckyCO on October 31, 2007, 11:59 AM
Issue and execute this sql statment and Select * from <your Table name> where ClintID=<ClientID>
It will provide that to u
   Grin Grin Grin Thanks so much for the help  Grin Grin Grin I will implement this ASAP  Shocked Shocked Shocked
luckyCO
Re: Post your Vb 6.0 Questions Here
« #76 on: October 31, 2007, 05:57 PM »

Ok try it and see but if it doesnt help u out don't hestitate to let me know.
luckyCO
Re: Post your Vb 6.0 Questions Here
« #77 on: November 13, 2007, 05:34 PM »

No more Questions?
Eskay2020
Dealing with database in vb 6
« #78 on: November 19, 2007, 02:05 PM »

Hello,i'just learning Vb 6 .please can anyone tell me how to design forms and write code for database in vb.Saving,retrieving,deleting,and modifying the content of a database and the like.My email address is eskay2u@gmail.com.
Hayorbahmy (m)
Re: Post your Vb 6.0 Questions Here
« #79 on: November 22, 2007, 02:04 PM »


Hey N'landers,
How would I search for a record in a database from the run time in VB 6.0
The database I used was Access. I would type one of the fields of the record in a text box and it would return the full details of the record.
I'll be expectin the reply
luckyCO
Re: Post your Vb 6.0 Questions Here
« #80 on: November 28, 2007, 01:24 PM »

I reply you in no distant time. Please bear with me. You have to use SQL  statemen of rs.find otpion in ADO object. I will sent full cope to you. Better stop programming in access use MYSQL,SQL server or oracle to start learning such that you wont start all over a again.

Remain blessed.
ELIJAHLOVE
Re: Post your Vb 6.0 Questions Here
« #81 on: November 29, 2007, 02:39 PM »

PLEASE KINDLY HELP ME WITH HOW TO DESIGN A VB FORM THAT WILL TAKE IN PICTURE AND KEEP IN A DATABASE FOR NOW AN ACCESS DATABASE WILL DO.
PLEASE I WILL APPRECIATE IT IF YOU CAN BE DETAILED.
TANKX SO MUCH I REALLY APPRECIATE THE WORK You GUYS ARE DOING. You R GOING PLACES FOR SUREE.TANKS SO MUCH
PLS ONCE AGAIN BE EXPLICIT AS I AM JUST COMING UP IN VB PROGRAMMING.
luckyCO
Re: Post your Vb 6.0 Questions Here
« #82 on: December 19, 2007, 11:31 AM »

Am sorry that I have not had chance to reply you. Our internet connection is becoming something else.
please bear with I will make out time and write the codes and send to you as soon as our internet is steady.
Thanks
Dynast (m)
Implimenting a computerized raffle draw
« #83 on: January 08, 2008, 04:57 PM »

Great programmers! Need help on how to impliment a Computer Draw.
I will enter  say texts or numbers into Vb object say combo
on clicking a button the data entered shld be randomised and one picked out from the rest.
On clicking a button another one will be picked out
Any one picked out leaves the column so that it will not be picked again

Hoping to hear 4m u
thanks and Happy New Year(Bon Anee)
chukz4real (m)
Re: Post your Vb 6.0 Questions Here
« #84 on: January 11, 2008, 11:47 AM »

@contributors
good one! I admire it all

@Lucky
I want to go into programmin fully. Though I had little knowledge on Object Oriented Programmin but can code conventionally a little. I've once tried VBA. Please do put me through on VB. This could be online I suppose because I blive u reside in Lagos while am in Ph. Thankx

Regards.
chukz4rea@yahoo.com
08038443905
luckyCO
Re: Post your Vb 6.0 Questions Here
« #85 on: January 14, 2008, 05:58 PM »

chukz4real
since you are on internet you can conveniently download materials which will be of use to you. If you want to fully utilize OPP do use C# or VB.Net.
How do be a good programmer to choose any program and start developing it. You may start writing non-database program to enable you master Keywords and syntaxes later you start by writing Database program. Choose any topic on the process you will learn. Stop procastinating or feeling that it is not too needed in your profession nor it is too hard and you must get somebody to train you before you learn. That is best way not to be a good programmer.

The best programmers don't learn in class room, they concentrate and discover most by themselves. Remember there is no magic in computer and everything in computer has sequence otherwise syntax error.

You can learn easily when you have a problem say a class that will enable you print report. After geting that, the whole lot of problems about printing is solved then you proceed to another one.
Join forums where you can download codes, modify and plug them into your programs.

Am not in Lagos neither PH but we can meet online as you said.

Do let me know that particular keyword you want to use or you need which refuses you and what you want to achieve with that keyword I could be of help.
cheers!
luckyCO
Re: Post your Vb 6.0 Questions Here
« #86 on: February 12, 2008, 02:14 PM »

No more question on vb?
krap (m)
Re: Post your Vb 6.0 Questions Here
« #87 on: March 31, 2008, 06:38 PM »

i really want to commend you,luckyco on how to try to profer solutions to questions.More power to your elbow. I am trying to develop a program using vb6 in which i would create a table(more of a data table) on a form in which computations could be made in the table along rows to give a final result and the table will be linked exactly to an excel table which could be printed.If it is not possible,you could tell me how i could achieve this possibly with another program. Thanks.
luckyCO
Re: Post your Vb 6.0 Questions Here
« #88 on: April 01, 2008, 05:03 PM »

You can achieve what you just said using Vb6.0.
Let me get your question correct, you said you are designing a program that uses database afterwhich there will be some computations which will be exported to excel maybe for printing?

If that is what you need, I will send you a code which you would use to export entire database,grid to MSexcel by using CreateObject command.

Thank, clearify your question such that I will understand.
yaro248 (m)
Re: Post your Vb 6.0 Questions Here
« #89 on: April 02, 2008, 12:05 PM »

Great Job LuckyCO:
Ever tried FireBird for DB? if not why not give it a try as I think it's an easier database than other referrences given. http://firebirdsql.org/
 
You really are doing a great JOB. Kudos to you, keep the good work.
luckyCO
Re: Post your Vb 6.0 Questions Here
« #90 on: April 12, 2008, 12:24 PM »

krap you have not cleared me yet.
Please try give me details of what you want to write that I will help you.
luckyCO
Re: Post your Vb 6.0 Questions Here
« #91 on: April 12, 2008, 12:32 PM »

I have sent this file because you have taken so much time in letting me know what you need.
Call this sub program and assign Mhs with MSHFlexgrid and KIM is optional representing row where you want to start exporting the file.

Thanks Help it will help you.


Public Sub PrintMsh(Mhs As Control, Optional KIM As Integer)
If MsgBox("Are you sure you want to export the data to excel", vbQuestion + vbYesNo, "Choose either yes or no") = vbNo Then Exit Sub

On Error GoTo errh
Dim D As Object, k As Long, J As Long
Set D = CreateObject("Excel.Application")
D.Visible = True
D.WORKBOOKS.Add
Dim II As Long
Dim i9 As Long

Dim i8 As Integer
i8 = CInt(Mhs.Rows / 65536) - 3
For k = 1 To i8
D.WORKSHEETS.Add
Next k

i8 = 1
i9 = 65536
II = 1
Dim M As Long
M = 1
Dim DF0 As Integer
If KIM <> 0 Then DF0 = KIM + 1

If KIM = 0 Then DF0 = KIM + 1

For k = 0 To Mhs.Rows - 1
If k = i9 Then
II = II + 1: i9 = i9 + 65536: M = 1
If II = i8 Then i8 = i8 + 1:

D.WORKSHEETS(II).Columns.Font.Size = 8
D.WORKSHEETS(II).Rows(1).Font.Bold = True
D.WORKSHEETS(II).Rows.AutoFit
D.WORKSHEETS(II).Columns.AutoFit
End If



For J = 1 To Mhs.Cols - DF0

D.WORKSHEETS(II).CELLS(M, J + 1) = Trim(Mhs.TextMatrix(k, J))

Next J

D.WORKSHEETS(II).CELLS(M, 1) = M - 1
M = M + 1
Next k

D.WORKSHEETS(II).CELLS(1, 1) = "S/N"

D.WORKSHEETS(II).Columns.Font.Size = 8
D.WORKSHEETS(II).Rows(1).Font.Bold = True
D.WORKSHEETS(II).Rows.AutoFit
D.WORKSHEETS(II).Columns.AutoFit
Exit Sub
errh:
End Sub
luckyCO
Re: Post your Vb 6.0 Questions Here
« #92 on: April 19, 2008, 11:44 AM »

Have u used the code? Let me know if it served you.
Thanks
ifkunlethe (m)
Re: Post your Vb 6.0 Questions Here
« #93 on: April 23, 2008, 03:46 PM »

I AM A VB6 PROGRAMMER. IF You NEED ANY HELP JUST CONTACT ME. kunlee22ng@yahoo.com, if_shittle_then@yahoo.com,08032578656

I WANT TO KNOW WHERE I CAN DOWNLOAD VB6 SOFWARE.
luckyCO
Re: Post your Vb 6.0 Questions Here
« #94 on: May 03, 2008, 02:52 PM »

Quote from: Dynast on January 08, 2008, 04:57 PM
Great programmers! Need help on how to impliment a Computer Draw.
I will enter  say texts or numbers into Vb object say combo
on clicking a button the data entered shld be randomised and one picked out from the rest.
On clicking a button another one will be picked out
Any one picked out leaves the column so that it will not be picked again

Hoping to hear 4m u
thanks and Happy New Year(Bon Anee)


I think you should use this code below if this is only what u need.

Draw Combox Box and command Box
and paste the code below
Private Sub Command1_Click()
Dim K As Integer, M As Integer
Dim NF As String
K = Combo1.ListCount - 1
M = Int(Rnd * K) + 1

If M < 0 Then Exit Sub


Combo1.ListIndex = M
NF = Combo1.List(M)

Combo1.RemoveItem M

Combo1.Text = NF



End Sub

Private Sub Form_Load()
' You can replace this since you have something else you want inside combo box.
Dim J As Integer

For J = 1 To 600
Combo1.AddItem J

Next J

End Sub

luckyCO
Re: Post your Vb 6.0 Questions Here
« #95 on: May 13, 2008, 11:27 AM »

Hope we don have much problem?
Anyway, if I have not answered your questions due to the time I my Internet  was down can still repost them such that I will answer them.
Thanks
 Companies not giving IT Projects to Nigerians  Dreamweaver vs FrontPage  Database Administrators On Nairaland  Page 2
Pages: (1) (2) (3) Go Up Send Topic to Friend by E-mail Reply 
Google
 
Web www.nairaland.com
Sections: TV/Movies (2) Music/Radio (2) Celebrities Jobs (2) Career Romance Books Politics Sports Fashion Travel
Health Schooling Religion General(2) Business Webmaster Programming Computers Phones Cars & Trucks

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa
Powered by: SMF, © 2001-2005, Lewis Media. All Rights Reserved.