473,385 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Auto generate form

pentahari
How to generate auto form to corresponding msaccess fields using visual basic. because i will create many form to the msaccess table.
Mar 28 '08 #1
5 1704
Killer42
8,435 Expert 8TB
What version of Visual Basic are you using?
Mar 28 '08 #2
my front end package version : Visual basic 6.0
Mar 31 '08 #3
Killer42
8,435 Expert 8TB
Um... so do you mean that you want to generate a simple form at runtime to allow the user to work with the fields in an MS Access database?

First thing - couldn't you use Access itself as the front-end?

As for VB6, I suspect the easiest thing would be to create a couple of control arrays (label and textbox), with only element (0). At runtime, look at the table/query and add entries to both array for each field. The label would just have the field name (or comment, or whatever you plan to display), the textbox could be (perhaps) bound to the field. Or simply used as a regular textbox and the database access done in code.
Mar 31 '08 #4
Um... so do you mean that you want to generate a simple form at runtime to allow the user to work with the fields in an MS Access database?

First thing - couldn't you use Access itself as the front-end?

As for VB6, I suspect the easiest thing would be to create a couple of control arrays (label and textbox), with only element (0). At runtime, look at the table/query and add entries to both array for each field. The label would just have the field name (or comment, or whatever you plan to display), the textbox could be (perhaps) bound to the field. Or simply used as a regular textbox and the database access done in code.
Thank you for your good idea.
Apr 1 '08 #5
Killer42
8,435 Expert 8TB
Thank you for your good idea.
You're welcome. Let us know how it works out for you.
Apr 1 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Sebastien | last post by:
Hi, I am building a products database, linking sales and production. Each part has a unique sales Stock Code and Production Number. The sales stock code is a combination of letters and numbers...
2
by: SalimShahzad | last post by:
Dear Gurus, i had written following codes to auto generate the next claim no Private Const strC = "GCT/02/J/" Private Sub Command1_Click() Dim stra, stre As String Dim intb, intd As Integer...
1
by: popsovy | last post by:
I am new to the discussion groups and to the .NET world, so this is probably a very basic question.. Is there any quick way in .NET to auto-generate data forms from typed datasets or SQL queries?...
5
by: Psych971 | last post by:
Hi, I'm wondering how I can generate a postback using javascript on a page that does not have any controls with the auto-postback property set to true. I know I can just use the submit() function...
6
by: | last post by:
Hi, can someone provide some advise on how to get around with using auto generated proxies? basically I already have the proxy classes, and they are used by other places. I'd like use these...
7
by: Sharon | last post by:
I'm writing my own control that derived from the UserControl. In my control I have some public properties (with get and set) that I do not want them to be shown on the designer properties window...
5
by: Navillus | last post by:
Hey gang, I have a login form that is empty by default, but can be filled with values from a previous form: <input type=text maxlength="40" size="40" name="user" value="`usr`"> <input...
13
by: S.Dickson | last post by:
I had an access database that i use as an ordering system. I have a form for entering customer details. When i add a new customer on the form the customer number is an auto number that appears when...
6
Megalog
by: Megalog | last post by:
Hey guys, my turn to ask a question =D Ok here's my situation.. I have a super simple form, which is bound to a table with a single record. All the controls (mostly text boxes, some true/false...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.