Cerrado

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: [login to view URL] "A", [login to view URL] "B", [login to view URL] "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 [login to view URL]

Dim rs as new [login to view URL]

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.

Habilidades: Visual Basic

Ver más: 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

Información del empleador:
( 0 comentarios ) India

Nº del proyecto: #8493315

13 freelancers están ofertando el promedio de ₹1238 para este trabajo

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 días
(104 comentarios)
6.2
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 Más

₹900 INR en 0 días
(71 comentarios)
5.5
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 Más

₹1000 INR en 1 día
(22 comentarios)
5.1
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 Más

₹1000 INR en 3 días
(22 comentarios)
5.5
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 Más

₹800 INR en 0 días
(6 comentarios)
3.5
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 Más

₹5263 INR en 1 día
(3 comentarios)
3.0
Maheshpatel107

Hello, I can fix your problem in sort [login to view URL] 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 Más

₹800 INR en 1 día
(6 comentarios)
2.4
bobythatway

A proposal has not yet been provided

₹850 INR en 3 días
(1 comentario)
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 Más

₹1000 INR en 1 día
(3 comentarios)
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 días
(0 comentarios)
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 días
(0 comentarios)
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 días
(0 comentarios)
0.0
karthik12dec

A proposal has not yet been provided

₹1150 INR en 3 días
(0 comentarios)
0.0