Fermé

Piece of code

I am doing a project and I am stuck in a particular form. In that form I have two combobox one is cbosource and another is cbodestination in cbosource in have added three item: [url removed, login to view] "A", [url removed, login to view] "B", [url removed, login to view] "c" and same for cbodestination: cbodestination "A", cbodestination "B", cbodestination "C". Now I have created a database for it in ms access table called "token" in that table I have given three fields : 1)Source

2)Destination 3)Amount. Now the first one is Source: A, Destination: B, Amount: 10. Next is Source: A, Destination: C, Amount: 15. Next is Source: B, Destination: A, Amount: 10. Next is Source: B, Destination: C, Amount: 15. Next is Source: C, Destination: A, Amount: 10. Next is Source: C, Destination: B, Amount: 15. So what I am trying to do is I want to link the items of combo boxes with the field items A B C and I want to display the amount in a text box i.e txtamt

.So please anyone can help me I have tried a code which I have shown below but when I do it it will change the data of the database but what I want is to display the amount as per the selection of the comboboxes.

Code:

Dim cn as new [url removed, login to view]

Dim rs as new [url removed, login to view]

private sub cmdamt_click()

if cbosource.text=rs!Source and cbodestination.text=rs!Destination then

txtamt=rs!Amount

endif

end sub

'Here when you execute it will change the values of the database but it wont display the amount.... So please anyone help me tmrw somehow I need submit my project so please anyone help me.

It is an Visual Basic 6 platform with ms access database.

Compétences : Visual Basic

Voir plus : php code export mysql data pdf, aspnet mssql responsewrite output xml data sample code, data base code, data report code wise connection, radar data processing code, php code mysql export data microsoft word, sample code generate fake data, source code export sql data csv file vb6, visual basic code extract excel data

Concernant l'employeur :
( 0 commentaires ) India

N° du projet : #8493315

14 freelance font une offre moyenne de ₹1199 pour ce travail

narekGuru

Hi, please give me teamviewer access and I'll help you with your project. I have 10+ years of vb6 experience. Kind Regards, Narek.

950 ₹ INR en 0 jours
(74 Commentaires)
5.8
piyushdpatel

I have 10 yrs of Exp in VBA,VB6.0,VB.net and MsAccess. I have developed many applications in VB6,VBA,VB.NET. Ready to start Can You send me your Sample Database file ? so i will send sample with Combo and te Plus

1000 ₹ INR en 1 jour
(19 Commentaires)
5.0
mail2vimalarora

Hi, I have gone through your project description and would like to take an opportunity to help you out with the problem statement. I have worked on several MS Access projects and VBA so can provide you required solut Plus

900 ₹ INR en 0 jours
(22 Commentaires)
4.8
softtechsurat

Hello sir/madam, we have read and understand your requirement and very much confident that we can complete this project within low budget and less time . Give us chance to serve you better Looking forward to be Plus

5263 ₹ INR en 1 jour
(3 Commentaires)
3.0
bobythatway

A proposal has not yet been provided

850 ₹ INR en 3 jours
(1 Commentaire)
0.8
elephentplayer

A proposal has not yet been provided

2777 ₹ INR en 3 jours
(0 Commentaires)
0.8
moustaphathiam

Hi. I am a Senior VB6, VBA and VB.NET Developer living in Paris, I have read your specifications and i want to realize your application. i have already developed several applications you can find in my folio. I n Plus

1000 ₹ INR en 1 jour
(0 Commentaires)
0.0
bygconsultancy

Hello, I have worked this out and can deliver this RIGHT NOW, ACCEPT THE BID. Many Thanks. Yogesh.

875 ₹ INR en 3 jours
(0 Commentaires)
0.0
pelenbenn

Hi, I can finish your project with great quality. If you need some of my previous works, please send me a message. Thanks! Benn

750 ₹ INR en 2 jours
(0 Commentaires)
0.0
GeniuSBraiN

Hello, I can help you with this in less time, and 100% accurate - I'm a Visual Basic programmer, I write programs in VB6 since 2007, in VB.Net since 2013. - Have long experience with winsock applications, FTP conne Plus

800 ₹ INR en 0 jours
(0 Commentaires)
0.0
Maheshpatel107

Hello, I can fix your problem in sort [url removed, login to view] I have very strong catch on VB6.0 with access. I have 2.5 years experience in vb,vba and vb.net development. I have worked with VB6.0 as Front-end VBA Script Plus

800 ₹ INR en 1 jour
(0 Commentaires)
0.0
gradate

Hi, Having more than 11 years of experience in developing, training and implementing .NET with SQL Server applications, I will try to provide you the solution Please reply so that we can have a chat regarding the pro Plus

700 ₹ INR en 1 jour
(0 Commentaires)
0.0
zu02

’d like to be considered for your programmer position. I’m an Access/VBA developer with a strong background developing a wide range of accounting, economical, statistical and mixed type projects using Ms Access, Ms Exc Plus

1000 ₹ INR en 3 jours
(0 Commentaires)
0.0
Mselvamani91

Dear sir, I am sure, i will complete this task in a particular time, depends on your requirements. Give me a chance

750 ₹ INR en 2 jours
(0 Commentaires)
0.0
karthik12dec

A proposal has not yet been provided

1150 ₹ INR en 3 jours
(0 Commentaires)
0.0