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

Structured form

23
hi :)

i have form which contains 18 same comboboxes - u can select employee id,
the difference between them is just their labels- they are labeled according the standard roles which are required on shift.

i created table that make every combox to record - is required cause now i can do some calculations (some are related to historical records).
but on the other hand, i would like to save the original order and formation of the first form, so i created more one table:
columns=#comboboxes and save their contains- now i can see the desired look.

but... I feel that it is not an elegant solution
second.. I need to duplicate it twice more =3 times as 3 shifts in day

please your help
(hope i was clear enough)
Aug 29 '16 #1
6 912
Narender Sagar
189 100+
I think your question is not clear enough.
Aug 30 '16 #2
zmbd
5,501 Expert Mod 4TB
It really sounds like the database is not normalized...
Please take a look here:
Database Normalization and Table Structures
Sep 1 '16 #3
ben1988
23
maybe it's not normalized.
but which way u can restore 57 values of comboboxes and their order?
Sep 1 '16 #4
zmbd
5,501 Expert Mod 4TB
+ Us the before update event of the control to store the control's value in an array, a table, or tempvars collection. I would either use a 2D array or a two field table as the ID of the control can be stored as a related data point to its value.

I would write the "save" code as a procedure that takes the control's ID and value as parameters. Then in the before update event call this code passing this information. If you are using an array, then set the array up as a global variable so that the variable is in scope for both the form and the code.

+ You then need some control to trigger the code to iterate thru the stored values and set the controls accordingly.


+ Now your issue is going to be if the controls are bound to a data table, if so, then you will also be changing that bound record's data when you "reset" the controls.

+ Here again, I tell you, this may be a nightmare to maintain in the long run.

++> If you will attempt to write the underlying code someone here may be able to help you streamline it. Please keep in mind that we do not usually write code from scratch unless it's something quite obvious or esoteric.
Sep 2 '16 #5
ben1988
23
wow.. i dreamed on this solution in the night - i swear
but if i store it in array, will it not delete after i close db??

Zmbd...thanks u so much for your answers all the time..
Although I know sql and C, its my second access db i write ..so I guess I'm a bit annoying
Sep 2 '16 #6
zmbd
5,501 Expert Mod 4TB
- If you want to keep the information between sessions then your only option is the table approach.

Now if you had provided that criteria in your original post, my first reply would have taken you down the table approach. :-)

- Not annoying in the least. :)
We all started from scratch at some point - You should have seen some of my first databases (ouch).

It's a fine line in how much information is too much and how much is too little, read our FAQ and the forum stickies for some guidelines. Also, keep posting, we're usually a patient group here all we usually ask is that you take ownership of the task, answer the experts' questions, consider and try out our suggestions, and finally show that you're making an effort. :)

++ However, there is a core set of knowledge that once mastered will help you in the long run and it is mostly covered in the tutorial and normalization links I PM'd you. This core set is also really needed to get the most out of what the Experts offer, the nature of this forum really doesn't cover the "introductory basics" (and yet we'll often cover that as needed :) )
Sep 2 '16 #7

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

Similar topics

3
by: Edmond Neo | last post by:
I use structured storage to store large amounts of data in various streams. I realize that I can call structured storage through a wrapper in .NET, but I'm concerned that there is a performance...
5
by: NK | last post by:
Hi, We have a webpage that has a form available on the intranet. A user will have a window open that runs a different application open. When the user accesses the webpage and clicks a button we...
3
by: _link98 | last post by:
Running DB2 ESE V8.1.8 on WinXP. This is Fixpak 8. Have a structured-type and some methods for that type. One of my methods needs to do insert / update on tables. The type specification...
1
by: Corinne | last post by:
I have a database that contains the details of pupils in a school. What I would like to do may not be possible but I thought I would ask anyway. Each year the pupils move to a different class,...
3
by: ambika | last post by:
Hello, I have a very basic doubt. Why is C called a structured programming language??why structured? C++ is called a Object Oriented language 'cos it obeys the OOP's concepts..Why is C called a...
1
by: trebor | last post by:
I'm learning dotNet, although I first learned programming back in the days when structured programming was all the rage. In both my books and courses, I've seen something like this: Public Class...
2
by: Cary | last post by:
This may reveal my poor programming skills, but here goes... I'm building a pricing tool for my business. I'm nearing the end of the project, and I've been asked to be able to save quotes in some...
38
by: Sanders Kaufman | last post by:
I'm converting my table-based layouts to css-positioned divs - but the ONLY reason I'm doing it is because it's *considered* a best practice. I don't really see where anything goes hinky when...
4
by: rhino | last post by:
I've been looking at the information on Structured Types in the certifcation guide and have previously read it in the DB2 manuals. As neat as Structured Types are, I'm very curious to know if they...
1
AmberJain
by: AmberJain | last post by:
HELLO, First of all, I accept that this is a too simple question but I got different opinions in different books and so I'm posting it here...... The question is simple.....Is C a block...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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
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.