Search results

  1. john471

    Finding a field in VBA

    Short of writing the code for you... here is a pointer to get you started... Use the AfterUpdate event of your check box (ChkGW). If the user has cleared the checkbox, then clear out the target text box, (you didn't explicitly say you want this behaviour, that is a presumption on my part)...
  2. john471

    Code Review - Looking for constructive feedback

    Thinking more about it this morning, also realised that you don't neeed SQL to update the "target" recordset - just use rstarget.edit rstarget.fields("RSRC_RATE_ID").value = lngRateID rstarget.fields("COST_PER_QTY").value = vCost rstarget.fields("COST_PER_QTY2").value = vCost2 rstarget.update...
  3. john471

    Find records that are present in one table, but are not present in other tables.

    This might work 1) A Union Query (tantamount to appending all the records into one (temporary) table) 2) A totals query based on the Union Query; grouping on the value, and only showing results whose count = 1 Just a thought. Regards John.
  4. john471

    multiple many-to-many relationships

    Regrettably, I am not an access god - but I shall take a stab at helping out... Think about what entities you have and what attributes those entities have. The enities become your tables, and the attributes are the fields within the tables. I'm not terribly knowledgeable in areas of law or...
  5. john471

    Code Review - Looking for constructive feedback

    In no particular order:- Database Observations --------------------- Your tables have repeating groups - this is generally considered to be bad practice. Rsrcrate - COST_PER_QTY, COST_PER_QTY2, COST_PER_QTY3, (etc) Read up on "Database Normalisation (Normalization)" for more information. In a...
  6. john471

    Convert Excel Formula into Access

    This might get you closer, but I'm not certain about the 'date - math' aspect of it. Looking up "DateDiff" and/or "CDate" in help may prove fruitful for you. The OR construct/useage in Excel is not the same in Access... = IFF ( [IMPORTANCE] = "Complete", IFF([Category] = "Cost Avoidance vs...
  7. john471

    Hack VBA protection code???

    Did the original developer supply the mdb of the front end, or only an mde ? If you don't have a copy of the mdb, then I don't think there is much hope. However, if you have an mdb I believe one of the (many) hack utilities would be able to do the trick. I had a case where the original...
  8. john471

    Edit a table using DAO, PLEASE OPEN

    Have you stepped through your code in debug ? I think you will find that your code, as written will... If the ID number entered matches the ID of the first record in the recordset, update the description of every record to the entry in text3. If the ID number entered doesn't happen to match...
  9. john471

    Query Criteria Inclues Time

    Have you tried setting the "type" of the parameter? 1) Open your query in design view 2) From the Query menu, select "Parameters..." 3) In the Parameter column, type in the name of your parameter i.e. "ENTER START DATE" (without the quotes) 4) In the Data Type column, change this to...
  10. john471

    Can queries edit tables positionally?

    Ogg13, So it is becoming clearer you are wanting to regularly import data that another program exports. What format does the other app expot to? The reason for my lengthy post above is that you are treading on dangerous ground. Pat Hartman is widely considered one of the foremost experts to...
  11. john471

    Can queries edit tables positionally?

    From what I think I understand, MStef has demonstrated the converse of what you are asking for:- blanking out repetitions instead of filling them in. You could use the same technique to fill them in, using an update query and rewriting the code to supply the 1)the previous value when the value...
  12. john471

    merge Columns

    You are welcome, xltest. Thank you for taking the time to reply back.
  13. john471

    Establishing Record Number

    P.S. I forgot to mention before.... you will want to update your control's value in the form's On Current event.
  14. john471

    Establishing Record Number

    I believe you would need an unbound control (e.g. textbox with no control source). You would probably also set its Locked property to true (so users can't edit it). I expect searching access on-line help for "CurrentRecord Property" may set you on the desired path. :) HTH Regards John.
  15. john471

    merge Columns

    xltest, I realise you probably believe you are being clear, but your situation/explanation(s) still leave me a little confused. Here is what I think I understand: 1) You are working in Excel (and not MS Access) 2) You have 60K + rows of data on which you want to expediently perform a one-off...
  16. john471

    sql tables in Access, allshowing #deleted

    What version of access are you using ? I had a similar issue with AC97 and linked tables to an Oracle back-end. I didn't yet resolve the issue on AC97 but was able to obtain correct results with ACXP, so I used that instead. In my case (Oracle BE) there is a knowledgebase article on the...
  17. john471

    File Integrity - obtain checksum

    Hi all, Does anyone have an easy/efficient way to compute a checksum for a text file, in order to store the file on a LAN and the checksum in a (seperate) DB ? Presently our guys print out miles of paper evey week, and the only purpose is to send it to archive to (almost) never look at it...
  18. john471

    Code Creates Lingering Process

    P.S. I may well be out of line, 'cause I haven't worked with CurrentProject. I'm still stuck in AC97 most of the time. Apologies if so. John.
  19. john471

    Code Creates Lingering Process

    My first (and only) suspicion is (as the_doc_man suggests, without actually spelling it out) that you need a conn.close in your exit section. As he also infers, your checks for an open rs are (AFAIK) not really necessary, a slight modification, if I may suggest... GetEmployeeStore_End...
  20. john471

    Random Selection of data

    A code free way to skin the cat... Create a new table tblRandom ---------- RandomID (Autonumber, Random (not increment)) YourMainTablePK (as FK ??"SKU"??) 1) Delete all records in tblRandom (if any) 2) Run an append query (to tblRandom), add all of the SKUs to the FK field - Access will...
Top Bottom