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

Dynamic display in Access Form - possible?

Hi,

I'm somewhat of a power user in excel and a newbie to Access though the possibilities are exciting me :-)

I am trying to create a tool in Access to replace an existing tool in Excel. My question is whether I will be able to replicate some key features that I was able to do in Excel.

The Excel tool was for operators in my company to put in records of Quality Control tests in production. Since we have a lot of complex tests, I was able to make it much easier for them with some excel features:
1. In Excel, my form dynamically displays the 'Acceptance Range' and 'Instructions' next to each field. (These are specified in TableX depending on the type of product being made) Can a form in Access also dynamically display information from a table based on some pre-selected criteria?
2. when they enter a test result it immediatelly turns red or green depending whether the result is acceptable or not (by checking whether it falls within the 'Acceptance Range' of TableX). If I create a form in access, is there anyway of creating some visual feedback after each field (test result) is filled even before the form is submitted?

The operators in my company keep the current Excel file open all day long and depend on it to flag them if product is getting into the danger zone and needs to be quarantined. But the problem is that with an excel tool, one cannot create reports across different files that the leadership can review. I am hoping that by migrating to Access, I will be able to create the reports I need. But I don't think operators will accept it if it doesnt give them instant feedback like they're getting now.

I am really hoping somebody will say this is possible in some way. Any help on how to do this is GREATLY appreciated. :-)

Mathew
Nov 19 '08 #1
16 3000
ADezii
8,834 Expert 8TB
Form what you are saying, it would appear that this could easily and more efficiently be accomplished within Access. For starters, I'll take a guess as to which Fields comprise TableX, just tell me which ones are correct/incorrect, then fill in the missing blanks.
Expand|Select|Wrap|Line Numbers
  1. [Product] -{TEXT 50}
  2. [Instructions] - (Probably {MEMO})
  3. [HI] - (Hi value of Acceptable Range) - {NUMERIC - specific Type Unknown}
  4. [LOW] - (Low value of Acceptable Range) - {NUMERIC - specific Type Unknown}
  5. [Test Results] - {NUMERIC - specific Type Unknown}
Nov 20 '08 #2
Form what you are saying, it would appear that this could easily and more efficiently be accomplished within Access. For starters, I'll take a guess as to which Fields comprise TableX, just tell me which ones are correct/incorrect, then fill in the missing blanks.
Expand|Select|Wrap|Line Numbers
  1. [Product] -{TEXT 50}
  2. [Instructions] - (Probably {MEMO})
  3. [HI] - (Hi value of Acceptable Range) - {NUMERIC - specific Type Unknown}
  4. [LOW] - (Low value of Acceptable Range) - {NUMERIC - specific Type Unknown}
  5. [Test Results] - {NUMERIC - specific Type Unknown}

---------------------------------------------------

Thats almost exact.
-TableX does not contain [Test Results]. That is filled into the form and goes into another table.
-it does contain an additional field; [Test Type]. We have some 30-40 different tests for each product and the acceptance range and instructions are different for each.

thanks for the quick response ADezii :-)

Mathew
Nov 20 '08 #3
ADezii
8,834 Expert 8TB
---------------------------------------------------

Thats almost exact.
-TableX does not contain [Test Results]. That is filled into the form and goes into another table.
-it does contain an additional field; [Test Type]. We have some 30-40 different tests for each product and the acceptance range and instructions are different for each.

thanks for the quick response ADezii :-)

Mathew
Just checking in Matthew, will report back later and see if we can get you started.
Nov 20 '08 #4
Just checking in Matthew, will report back later and see if we can get you started.
thanks ADezii, Let me know if there's anymore information I need to add on.

Mathew
Nov 20 '08 #5
ADezii
8,834 Expert 8TB
thanks ADezii, Let me know if there's anymore information I need to add on.

Mathew
There is 1 point that I must get straightened out before we proceed. You state that 'Acceptance Range' and 'Instructions' depend on the specific Product. Shouldn't the HI and LOW Acceptance Values for a Range be dictated by the Tests involved and not the Product? In your scenario, unless I misunderstand it, if Product A has 20 Tests that can be associated with it, each of the 20 Tests will have the same HI and LOW Acceptance Values. Is this correct?

I would also like to see some Raw Data such as: 3 Product Names, associated Instructions for each of those Products, depending on what your answer in the previous Post is, HI and LOW Acceptance Values defining the Range for the Product or Test, 6 Tests which would be appropriate for each of the 3 Products along with the Test Type information.

Since multiple Tests can be performed on a single Product, I am envisioning a Product Table with a 1 to MANY Relationship with a Test Table, but this Acceptance Range is still clouding the issue for me.
Nov 21 '08 #6
@ADezii

Sorry, I was not completely accurate earlier. Let me try to do a better job :-)

Acceptance Range - This depends on both 'Product' & 'Test Type'. Initially the Hi/Low is set by Test Type. This automatically sets the default values for all Products. Later depending on customer feedback, it is adjusted individually for each Product.

Instructions - These are dependent on Test Type only

There are other variables as well, but the ones we've talked about are the most important.

I've attached an excel file with a simplified version of the raw data in TableX in Excel. It has three products and a variety of rests.

Please let me know if I need to add on anything more. I appreciate the time you're putting in here.

Mathew
Attached Files
File Type: zip QC tables example.zip (6.6 KB, 110 views)
Nov 23 '08 #7
ADezii
8,834 Expert 8TB
Blaze77, I have the Excel File and I'll try to have a look tomorrow and see what is going on, and if I can, I'll try to arrive at some sort of solution for you. Kindly be patient.
Nov 24 '08 #8
ADezii
8,834 Expert 8TB
@blaze77
Hello Matthew, I had a chance to look at the Excel File and also to re-read this Thread. There is one that that you have to realize, it is very difficult sometimes to try to interpret the request for a Thread at the other end of a Web Page, and this is one of those times.

That being said here is what I've come up with so far. A specific Test can be applied to several Products and a single Product can have multiple Tests performed on it. This is what we call in Access the dreaded 'MANY to MANY' Relationship, and it cannot be directly supported. What will be needed here is an Intermediate Table that will contain only 2 Fields: the Primary Key of the Test Table (TestID) and the Primary Key (ProductID) of the Products Table. 'Together' in this Intermediate Table will these 2 Fields comprise a Primary Key, and now can Link back to their respective Tables. Download the Attachment that I have supplied. The Test Database will open and display the Relationships Window to give you a visual display of what I have just said.

There are a few other Items which I will need clarification on, occasionally referring to the Excel Sheet:
  1. The Default Value for a Test is overwritten by the Default Value for the Product on which it is applied. Is this correct? For example, if you were to apply the Slide Test (Face to Back) for the S11Paper Product, your HIGH would be 12 and your LOW would be 20 because these are specified within the Product. Is this correct?
  2. Given the same Test/Product Combination (Slide Test for S11Paper), how can the Test have a Default LOW of 14 and HIGH of 25, while these same Defaults for the S11Paper are 12 HIGH and 20 LOW (LOWER Range > HIGH)?
  3. Aside from these questions being answered, here is the logic as I see it:
    1. The Operator selects a Test to be performed on a Product.
    2. Check and see if the specific Test is applicable for the Product, if it isn't notify the Operator and get outta Dodge!
    3. If the Test is applicable, check and see if Default HI/LOW Product Values exist for the specific Test/Product combination. Use the Product values first, then revert back to the Test Defaults in the event that either 1 or both are not specified for the Product.
    4. Once the appropriate HIGH/LOW Values have been determined, check the Test Results Value against this Range as it is entered into a Field on a Form? If it is within the Range, Green Light it, if not Red Light.
    5. Forget the Results Table for now, I'm sure that this is enough to digest.
    6. Don't forget to view the Attachment.

P.S. - The System will not allow me to Upload a 12KB Zip File, I'll check in with the Admin and get back to you ASAP.
Nov 24 '08 #9
ADezii
8,834 Expert 8TB
@blaze77, I am once again attempting to send you the Attachment referred to in the previous Post. Got it!
Nov 25 '08 #10
@ADezii
Thanks ADezii,

I've got the file. It seems that the many-to-many relationship between TestID & ProductID is defined in TblTestProduct. That makes sense.

To answer your questions:
1. The default values for a Test never get overwritten unless manually done so. When a new Test is added, all Products use the Test default until they are changed, (but the Test default values stay the same). That way when a new Product is added, it will use the original Test default as well.
2. So for the Slide Test, the default is 14-25 (Low-High and this will not change). For the Product: S11Paper, this has been updated to 12-20 (not 20-12 which was my typo. Sorry :-))
3. slight correction below, otherwise you've accurately described the process:
C: Use Product Values ONLY. If they do not exist, then they have been deleted for that product. Operator will never use the Test default values (Test values are only used as references to setup new products)

With the structure you've created for me, I'm going to go work on building on top of it. I'm looking forward to what direction you point me in on how to create dynamic forms (dynamic hi/low/instructions/ redlight/greenlight)

I don't know which part of the world you're from, but incase you do celebrate Thanksgiving on the 27th, hope you and your family have a wonderful time! :-)

Mathew
Nov 26 '08 #11
ADezii
8,834 Expert 8TB
Hello Blaze77, I need to know how many more typos there are since I have no actual way of knowing what the single value missing from a HIGH/LOW pair is. Can you send me a corrected Spreadsheet free of typos, then I can proceed? This is a critical step.

If an Operator wanted to perform a Gloss Test on either 1 of the 3 Products, how could he/she? The Test is applicable to all three Products, but there is a critical Value, either HIGH or LOW missing for each of the Products. Would you simply notify the Operator that the Test cannot be performed, etc.?

Once we get these couple of issues ironed out, we should be able to proceed, but at this point I can do nothing further until I get these resolved.

Have a nice Holiday!
Nov 27 '08 #12
@ADezii
H ADezii

I have attached the spreadsheet again after reviewing it. This is accurate.

Any missing values that you see are intentional. In the Gloss Test example, there is no High because the higher the gloss, the better it is for the customer. So a test result below the 'Low' will trigger a red-light, but it can go high without any restrictions.

Blaze77
Attached Files
File Type: zip QC tables example.zip (6.5 KB, 118 views)
Dec 1 '08 #13
ADezii
8,834 Expert 8TB
@blaze77
Got it, will try to look at it as soon s I can and will get back to you.
Dec 1 '08 #14
ADezii
8,834 Expert 8TB
@blaze77
Hello again, Blaze77. Download the Attachment and see if this Template is something similar to what you are looking for. It is simply more practical to view the Attachment, rather than post all the code. Good luck and let me know how you make out.
Dec 2 '08 #15
Hi Adezii,
Just wanted to make sure I came back and said thank you! My final solution changed quite a bit as I tried to incorporate everyone's feedback, but your solution is what set up on the right path. :-)
Blaze77
Feb 10 '09 #16
ADezii
8,834 Expert 8TB
@blaze77
Glad it all worked out for you, Blaze77.
Feb 10 '09 #17

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

Similar topics

7
by: Bil Muh | last post by:
Esteemede Developers, I would like to Thank All of You in advance for your sincere guidances. I am developing a software using Visual C++ .NET Standard Edition with Windows Form (.NET)...
1
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
4
by: Venus | last post by:
Hello, Thanks for your reply. I understand that a control can be created dynamically in several ways: 1) using StringBuilder 2) using Controls.Add 3) using ASP PlaceHolder But this is just...
7
by: Abraham Luna | last post by:
how do i stop the dynamic validators from breaking explorer if i use a dynamic validator and move to a different control it breaks explorer and i can type in the page when i'm not supposed to....
6
by: Rich | last post by:
Hello, I want to simulate the dynamic thumbnail display of Windows Explorer (winxp) on a form or pannel container. If I place a picture box on my container form/pannel and dimension it to the...
9
by: Jimbo | last post by:
Hello, I have a user request to build a form in an Access database where the user can check off specific fields to pull in a query. For example, let's say I have 10 fields in a table. The user...
0
by: cindy | last post by:
I have a dynamic datagrid. I have custom classes for the controls public class CreateEditItemTemplateDDL : ITemplate { DataTable dtBind; string strddlName; string strSelectedID; string...
13
by: salad | last post by:
Operating in A97. I didn't receive much of a response conserning Pivot tables in Access. Pivot tables are nice, but a CrossTab will work for me too. Using a Pivot table, one is actually...
3
by: creative1 | last post by:
Here is how you create a complex data report that involves parent and child commands and you can update information at runtime. Its pretty straight forward to work with simple queries; however,...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.