473,396 Members | 1,875 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.

Button Control

43
The form I'm creating will allow the user to registar welds based on a numerbic intervale (ex. 1 of 3). Now if the user is only making 1 weld register and click one of the buttons, it saves to the table fine. However if the user is trying to registar more than 1 registar weld (ex: 2 of 3) and clicks a different button on the second of third weld, then the SN for the second and third welds are not saving in the table on a different line.

Example: 1 of 3
sn = xxxxxxxxx = "Good"
sn = ccccccccc = "POP"
sn = bbbbbbbbb = "Other"

Recorded on the table would read:
sn = xxxxxxxxx = "Good" (WeldResults); "POP"(WeldResults1); "Other" (Weldresults2)

All of this would be on one line in the table instead of 3 different lines in the table.

How do I fix this? Here is the code for the textboxes:
"Good" textbox
Expand|Select|Wrap|Line Numbers
  1. Private Sub Text55_Click()
  2. DoCmd.RunCommand acCmdSaveRecord
  3. If Not IsNull(Me.SN.Value) Then
  4.     LastPosSN = Me.SN.Value
  5. End If
  6. If PosPullTestCount = Me.PullTestNum.Value Then
  7.     MsgBox "Time to perform a pull-test on a scrap cell!"
  8.     PosPullTestCount = 1
  9.     Me.Text30.Value = Me.PullTestNum.Value
  10.     DoCmd.OpenForm "GeneralTabPullTest"
  11.     DoCmd.GoToRecord , , acNewRec
  12.     Forms!GeneralTabPullTest!LotNumber = Me.LotNumber
  13.     Forms!GeneralTabPullTest!CreationDate = Now()
  14. Else
  15.     PosPullTestCount = PosPullTestCount + 1
  16.     Me.Text30.Value = Me.PullTestNum.Value
  17. End If
  18.  
  19. End Sub
  20.  
"POP" Textbox:
Expand|Select|Wrap|Line Numbers
  1. Private Sub Text52_Click()
  2. DoCmd.RunCommand acCmdSaveRecord
  3. MsgBox "CLEAN ELECTRODES NOW"
  4. If Not IsNull(Me.SN.Value) Then
  5.     LastPosSN = Me.SN.Value
  6. End If
  7. If PosPullTestCount = Me.PullTestNum.Value Then
  8.     MsgBox "Time to perform a pull-test on a scrap cell!"
  9.     PosPullTestCount = 1
  10.     Me.Text30.Value = Me.PullTestNum.Value
  11.     DoCmd.OpenForm "GeneralTabPullTest"
  12.     DoCmd.GoToRecord , , acNewRec
  13.     Forms!GeneralTabPullTest!LotNumber = Me.LotNumber
  14.     Forms!GeneralTabPullTest!CreationDate = Now()
  15. Else
  16.     PosPullTestCount = PosPullTestCount + 1
  17.     Me.Text30.Value = Me.PullTestNum.Value
  18. End If
  19. End Sub
  20.  
Hope this makes sense, any help would be appreciated. I not sure why it's not recording the choices independently.

Thanks
Apr 2 '13 #1
2 1155
Seth Schrock
2,965 Expert 2GB
Unfortunately, this doesn't make much sense. Originally, it seems like there is are three separate fields for the welds, and then it seems like there is only one field that you want to populate with the type of weld. In you example 1 of 3, what is the XXXXXXX and CCCCCCCC and BBBBBBBBB? Perhaps showing the table structure would be helpful.
Apr 3 '13 #2
zmbd
5,501 Expert Mod 4TB
It really sounds like you need to read thru: > Database Normalization and Table Structures.

There should be a series of tables... say one for your project, one that relates welds to the project, etc...
Apr 4 '13 #3

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

Similar topics

2
by: Buddy | last post by:
Hello, Can someone point me to some example code that shows how to paint the text in a button control. I basically want to reposition the text so it does not wrap.
1
by: JLOI | last post by:
Hi All, I am trying to implement a dropdown-button control in C# which provides a list of actions. Many Microsoft applicaitons use this kind of control. One example is in the V.S IDE's file...
1
by: Krishna | last post by:
1. What is the difference between OnClick and OnServerClick in web button control If I have a asp button control as follows <asp:button id="SubmitOrder" Text="Submit Order"...
3
by: Chris Dunaway | last post by:
I have derived a class from the System.Windows.Forms.Button class in order to draw the button differently. Among other things, I paint the background of the button in the OnPaing override. ...
7
by: BigBass1 | last post by:
Hello All, this is my first post. I usually find answers to my questions here, but seem to be stuck here on a problem. I am requesting help setting up a small project I want to create for work. ...
1
by: Fabrice | last post by:
Hello, I have encountered a deep problem with accent and I don't understand why. I m preparing a multi-language website. French and English so far. With french, we have accents and ......
0
by: David | last post by:
Hello all. I am trying to implement my first server control and have run into two problems that I cannot solve. I need the assistance of someone with more experience. My goal was to create an...
0
by: jcvoon | last post by:
Hi: I'm using VS2005, I add my image into project resource file, and my picture box and button control reference the image from the project resource file, what is the default transparent color...
5
by: gregarican | last post by:
There is a C# CTI app I'm working on using Visual Studio 2005 at revision level 8.0.50727-7600. I need a couple of Windows Form Button controls to emulate line buttons on a telephone. So I went to...
0
by: Roberto Kohler | last post by:
I created an enhanced Button Control in ASP NET 2.0 to add a delete confirmation message and to disable the button if the user does not have access. The new button control has a "ConfirmMessage"...
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: 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:
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
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.