Re: Make Table Query and setting Number type

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jasonm (jasonmNO_at_SPAM.charter.net)
Date: 01/19/05


Date: Tue, 18 Jan 2005 21:11:11 -0800

John, Thanks again for the info...
I have found a way to do what I was trying without creating a table each
time... I was just not constructing my queries correctly so that I could get
all of the data that I needed in the right place at the right time.
I was trying to validate teh data in the temporary table (the one that I am
NOT recreating every week now!) against the last data entered in the
permanant table.
I now just use an update table to bring in the last values entered for each
equipment tag in the temp table and then an append table to wrine the new
weeks values back into the permanant table...
I don't know why it takes me so long to get these things working sometimes,
but at least I can say that when I finally do figure things out they seem to
stick with me...

Thanks again for your help. Your advice is spot on!

Jason M Canady

"John Vinson" <jvinson@STOP_SPAM.WysardOfInfo.com> wrote in message
news:0orqu0tm0ii5em38ld38c7ks04oqestmcd@4ax.com...
> On Mon, 17 Jan 2005 17:46:09 -0800, "Jasonm"
> <jasonmNO@SPAM.charter.net> wrote:
>
>>John,
>>
>>Thanks for the reply...
>>
>>In trying to make my db easier for my users I am making things harder on
>>myself... I am trying to propagate a table with a list of all of the
>>equipment that requires an hour reading so that the user enters in all of
>>the data for the week and then an update query runs that appends these
>>"new"
>>records to a table that stores all of the hour readings... (I'm not sure
>>if
>>I have explained that well enough, but I gave it a stab!)
>
> hmmm... sounds like there could be some redundancy going on here. And
> I don't see why this should require any MakeTable queries (other than
> once and once only); if you're appending the same set of data weekly,
> you'ld do best to have a "template" table of the week's data, and
> append it weekly. I guess I'm not visualizing your process correctly;
> you say "an update query that appends..." which is a contradiction
> (update queries update existing records).
>
>>What I am doing right now is that I have a set table that the user enters
>>the data into and then the above append operation is done. What I am
>>trying
>>to add is the ability to validata the numbers that the users are entering
>>into the db.
>
> Well, that's the hard way to do it for sure! Hopefully you're not
> using table datasheets for data entry or editing...!? That should
> NEVER be required.
>
> Much better would be to give the user a Form, and validate the data
> right there on the Form. It would be bound to the table where the data
> is to end up, but the validation would be done *on the form itself*,
> before the record is loaded to the table.
>
> I may be wrong here if the validtion involves counts or sums over
> multiple records - but I still see no benefit to creating new tables.
>
>>I thought that the easiest way to do this would be to recreate
>>the entry table each time with a query that would give me the last entry
>>from the table that stores all of the results thus giving me something to
>>compare to. I tried validating by linking directly to the other table
>>(tblHours) but could not get it to work...
>
> Since I have NO trace of a notion what sort of validation you're doing
> I cannot contribute much here, other than to say that it is absolutely
> *NOT* necessary - in fact it's a Very Bad Idea - to create a new table
> just in order to visually see data from an existing table!! Just
> display it on a Form; if you don't want that record being edited, set
> the properties of the form or the controls on the form to lock them.
>
>>The short of it is I need a way to prevent an entry from going into
>>tblHours
>>that is less than the last entry for the piece of equipment. I am thinking
>>that I may have to work on doing this through vba, I was just trying to
>>avoid that as my vba isn't the greatest and it would take quite a while
>>for
>>me to work out...
>>
> If you could explain (using table and field names and example data)
> what's valid and what's not, we'll be glad to help. VBA will be the
> simplest way to do this, but it's easy VBA (or may be easy, depending
> on what validation requirements you specify!)
>
> John W. Vinson[MVP]



Relevant Pages

  • Re: Make Table Query and setting Number type
    ... >the data into and then the above append operation is done. ... >the entry table each time with a query that would give me the last entry ... Since I have NO trace of a notion what sort of validation you're doing ... >that I may have to work on doing this through vba, ...
    (microsoft.public.access.queries)
  • validate text bod in a user form
    ... I have a text box in a form that I want to validate using ... vba. ... The entry must start with a letter "P" and end with 5 ... I can do this with data validation in a cell but not sure ...
    (microsoft.public.exchange.misc)
  • RE: Capture Text Input
    ... Wouldn't the best/simplest solution to be to make each entry its own entry ... When a doctor ends his duty ... Doctor can delete existing text from these controls or append new ... 27 year old woman came in with RIF pain for 4/7. ...
    (microsoft.public.access.formscoding)
  • RE: Table as Criteria
    ... Actually I have some Queries from all these tables, and this Append method ... pick one table to be used as the master. ... > Run an update query for the master table to update its MonthID entry to ... > see May & June records in the table, with the respective MonthID entry. ...
    (microsoft.public.access.queries)
  • Re: Newby TK Sanity check tracking Entry widget from HLL (Lisp, in fact)
    ... But one question has gone unanswered: is this the only way to get notified by Tk of every change to the entry value /during editing/, ie, before they exit the field? ... I have a textVariable associated with the widget, but I am not sure that helps. ... One note to make here is that by using validate -key this will capture ... Another option you have is setting a write trace on the variable associated ...
    (comp.lang.tcl)