如何在Visual Basic 6中使用Microsoft Access 2010并对其进行控制? [英] How do I use Microsoft Access 2010 with Visual Basic 6 and control it?

查看:94
本文介绍了如何在Visual Basic 6中使用Microsoft Access 2010并对其进行控制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是基于Visual Basic 6的项目的一部分。我的项目被命名为在VB6中实现移动联系人,MS Access作为数据库。我需要在Visual Basics 6中重新创建移动联系人功能。所以我遇到了一些问题。我是Visual Basics的新手。



这是两张我无法完成的表格截图

PIC-1
https://lh4.googleusercontent.com/ -9Y9aviy04mE / UeBBeETH-wI / AAAAAAAAAIQ / dQEWNDe2b-s / s1072 / 1.jpg [ ^ ]



PIC-2

https://lh3.googleusercontent.com/ -lCguBA6ITuc / UeBBerdwByI /AAAAAAAAAIU / HGxRopCO5q8 / s1063 / 2.jpg [ ^ ]



所以这就是我应该做的......

1。当我点击'ADD'(PIC-1)按钮时在VB中,它应该转到下一个表格(图2),我应该能够填写文本字段,而这些字段又应该以prev形式更新数据网格(PIC-1)。

2。当我点击datagrid中带有值的字段时,灰色空格应显示该联系人的所有详细信息。



I有这些问题..

1。我无法连接到MS Access数据库。即我无法将表格中添加的数据(PIC-2)更新到数据网格(也许是因为数据本身不会进入数据库。)

2。需要帮助将细节显示到指定的灰色空间(PIC-1)。



我使用Visual Basics 6和Microsoft Access 2010作为数据库。因为Access 2010不支持VB6,所以我使用内置的Access(.mdb)使用jet 4.0来创建数据库。

我已经以多种形式发布了这个问题,但找不到完美的解决方案。我是VB6的新手。有人可以推荐一个解决方案吗?

如果有人想看到该项目的参考。在这里找到它 http://www.mediafire.com/download/cwcjehpeb225o64/VB6.zipx [< a href =http://www.mediafire.com/download/cwcjehpeb225o64/VB6.zipxtarget =_ blanktitle =New Window> ^ ]



我想我已经提供了足够的细节。如果您需要更多详细信息,请提及。

I'm a part of a Visual Basic 6 based project. My project has been named 'Implementing Mobile Contacts in VB6 with MS Access as database'.I need to recreate the mobile contacts feature in Visual Basics 6. So I'm stuck with some problem. I'm a newbie to Visual Basics.

Here's a screenshot to two forms which I'm unable to complete
PIC-1
https://lh4.googleusercontent.com/-9Y9aviy04mE/UeBBeETH-wI/AAAAAAAAAIQ/dQEWNDe2b-s/s1072/1.jpg[^]

PIC-2
https://lh3.googleusercontent.com/-lCguBA6ITuc/UeBBerdwByI/AAAAAAAAAIU/HGxRopCO5q8/s1063/2.jpg[^]

So here's what i'm supposed to do...
1. When I click the 'ADD'(PIC-1) Button in VB, it should go to next form(pic-2) and I should be able to fill-in the text fields which in-turn should update the datagrid in the prev form(PIC-1).
2. When I click the fields in datagrid with value, the grey space should display all the details of that contact.

I have these problems..
1. I'm unable to connect to MS Access database. i.e. I could not update data added in form(PIC-2) to the datagrid( Maybe it's because the data is not going into the database itself.)
2. Need help in displaying details into gray space(PIC-1) as specified.

I use Visual Basics 6 and Microsoft Access 2010 as database. Because Access 2010 does not support VB6 I have used inbuilt Access(.mdb)using jet 4.0 to create database.
I have posted this question in many form but couldn't find a perfect solution. I'm new to VB6. Can someone recommend a solution?
If someone wants to see the project for ref. find it here http://www.mediafire.com/download/cwcjehpeb225o64/VB6.zipx[^]

I think I have provided enough details. Please mention if you need more details.

推荐答案

>您最好使用较新版本的VB来获取VB.net的所有功能。



听起来你的经理/老师对现代软件有任何线索, - )



http://www.microsoft.com/visualstudio/eng/downloads



如果不可能你需要通过sql去痛苦的方式。在Access中创建一个连接并从VB中使用它。
>you better use a newer version of VB to get all the features of VB.net.

It sounds that your managers/teachers have any clue about modern software ,-)

http://www.microsoft.com/visualstudio/eng/downloads

if it isnt possible you need to go the painful way via sql. Create a connection in Access and use it from VB.


这篇关于如何在Visual Basic 6中使用Microsoft Access 2010并对其进行控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆