473,397 Members | 1,972 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,397 software developers and data experts.

multiple tables one form VB or not ?

Ive asked this question in the access thread area also: just want to see if VB coding could help to do this in a neater better way.. the answer I got was use sub forms but if im honest its not the desiered effect I want on my database..

Hi all is it possible to get more then one frm / tabel to show its controls Basics:

I have 5 tables I would like to update but rather then create mutiple forms to update and use cmdbuttons to open them individually I thought it would be neater to have 5 tab control pages so you can tab to the product or info i need (if that made sense)

Ive tried it but dont seem to get it to work, im new to VB but would love to know if it is poss or a hint at least how to do this.. not asking for anyone to do this for me as I need to learn but need a pointer or too even if its a title of a book to help me or link to a web source that can take me through it step by step..

so say I have

tbl1 with three text boxes one drop down call it tblProduct
tbl2 with 2 drop downs and 4 text boxes call it tblPrinters

etc.... so tbl1 on tab 1 and so on

Thanks in anticipation..

Sal
Sep 23 '09 #1
4 3915
kadghar
1,295 Expert 1GB
well, if you dont want to get into the 'wonderful' world of making your dinamic views. Perhaps you should try doing the same you're doing, but instead of using multiple forms, use multiple frames, or a tabs control. that'll allow you to have all items you have in the same form, but in different spaces.
Sep 25 '09 #2
smartchap
236 100+
If I understood your query, you want to update data in each table one at a time. If this is the question (as u already know the use of tab control), I say, Yes it is possible. You should use 5 Recordsets for 5 tables as:

Expand|Select|Wrap|Line Numbers
  1. Dim rs1 As New ADODB.Recordset
  2. Dim rs2 As New ADODB.Recordset
  3. Dim rs3 As New ADODB.Recordset
  4. Dim rs4 As New ADODB.Recordset
  5. Dim rs5 As New ADODB.Recordset
  6.  
If using these tables in one database file then use

Dim cn As New ADODB.Connection

otherwise use 5 commands for Connections also.
If any other query, ask it, I will try to solve or You can post your code for clarifications.
Sep 25 '09 #3
Thanks smartchap i think i got an understanding of what you have just told me:
as for code hmmm wellllll once ive got this done I will take you up on that offer please bare in mind it WILL be very crude as im totally new to this vb (and loving it)


ok now you got me intrigued kadghar "wonderfull" world of what now ? Dynamic views was is it !? erhm ok noob here whats that then or did you mean use sub forms ! is multiple frames same as tabs control.. ?

I want to be able to make this database say HI look what ive achieved , the db im designing is for

1) it is for work so i want it to look good for that reason..

but more essentialy its

2) helping my self development to improve job prospects (new career path) so new ideas and hints what to learn is more then welcome... best practice's etc... (im self taught so far apart from an intro to vb course, which was very very basic.. kinda hi this is vb good bye !!)

as always your help is apprieciated..

thanks

Sal
Sep 25 '09 #4
smartchap
236 100+
For learning VB there are many sites on which tutorials are available. In this forum also U will get a section for this. On Google search for 'VB6 Tutorials' and thank me for a lot of sites which I think u will not be able to study all.
Sep 25 '09 #5

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

Similar topics

2
by: IanCraft | last post by:
I am new to Access 2002 and have a questions regarding using a form for data entry. I have 15 items I need to keep track of that are listed individually on a form as follows: Item#1Name ...
11
by: dskillingstad | last post by:
I've been struggling with this problem for some time and have tried multiple solutions with no luck. Let me start with, I'm a novice at Access and I'm not looking for someones help to design my...
2
by: DraguVaso | last post by:
Hi, I found some examples for storing the FormSettings of a Form in an XML-file, but none of these could match my criteria: What I am looking for is the possibility to save the FormSettings of...
9
by: jaYPee | last post by:
I have search a lot of thread in google newsgroup and read a lot of articles but still i don't know how to update the dataset that has 3 tables. my 3 tables looks like the 3 tables from...
4
by: Dave Edwards | last post by:
I understand that I can fill a datagrid with multiple queries, but I cannot figure out how to fill a dataset with the same query but run against multiple SQL servers, the query , table structure...
5
by: mimo | last post by:
Hello, I have seen samples on how to pull data from one table and save back to it using the Form View control. How do I pull from multiple tables and save back to multiple tables on one...
13
by: ricky.agrawal | last post by:
I'm really not sure how to go about this in Access. What I've created is a table for each location. Those tables are identical in format but different in information. The tables are named after...
6
by: ApexData | last post by:
I have 2 tables: Table1 and Table2. Neither one has a primary key because each table will only have 1-record. My form is a SingleForm unbound with tabs (my desire here). Using this form, in...
7
by: =?Utf-8?B?TG9zdEluTUQ=?= | last post by:
Hi All :) I'm converting VB6 using True DBGrid Pro 8.0 to VB2005 using DataGridView. True DBGrid has a MultipleLines property that controls whether individual records span multiple lines. Is...
11
by: shriil | last post by:
Hi I have this database that calculates and stores the incentive amount earned by employees of a particular department. Each record is entered by entering the Date, Shift (morn, eve, or night)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.