Search results

  1. M

    What's your best/worst joke?

    Buying a cat is pointless. The Cat Distribution System exists because CATS are the ones who decide with whom they wish to live. Paying money is a total waste. Also explains a lack of bonding. 😁
  2. M

    SQL problem

    You may want to show this thread as "Solved". If not, we'll see post 115 far to quickly. :)
  3. M

    Edited record vanishes from filtered recordset

    The times I've had to deal with "Keep the list you are working on", I do so by having a local table in the front end that holds the IDs of the records they need to work with. Then the query runs on this table and grabs the matching records to show. Other option for assigned records uses the same...
  4. M

    OutputTo Excel error

    Something you may want to do to keep your hair in place. For the values you use in FilePath, CategoryID, and the year you pull from your CkDate, I'd put them into a field on a form you can edit OR store them in a table. This is to prevent you needing to go back in to code some time in the...
  5. M

    Late Control binding to make Forms Field independant.

    Yes. More importantly you can assign specific templates for specific needs so you DON'T have to use a giant template. Think of it more as "I get to turn on and off specific functions on a per control basis".
  6. M

    Late Control binding to make Forms Field independant.

    Fundamental differences between storing code to control behavior for a field in a table and how Clarion does it with templates are 1) Clarion is a compiled language. Updating the template and recompile to achieve updates rather than update code in a table. Benefit is you get the speed of it...
  7. M

    Entering text into a table via a query

    Just to save you a LOT of trouble in the future, I'd replace "Paid" with having a Date Paid in your invoice field. It will save hours the first time you get that abominable entitled client who wants to argue they are always up to date on their account as the invoice shows "Paid" but doesn't...
  8. M

    Late Control binding to make Forms Field independant.

    I would suggest looking at the Clarion programming language to see if their templated application development is what you are looking for.
  9. M

    Have you ever been pressured into building something with a bad design?

    Depending on what fields are prompted, I can see a separate form that is used with cash purchases to avoid prompting for payment method. This is especially true when you don't want an employee to "Accidentally" print out the "Paid in cash" receipt for a CC or invoice purchase. May even require...
  10. M

    DLAST FOR DATE SERIAL

    Looks like you want the TOP value SELECT TOP 1 entry_date, entry_amount_kg FROM Tbl_Daily_Entry ORDER BY Tbl_Daily_Entry.entry_date Alternate you could use MAX which implicitly only returns the greatest (TOP) value. In SQL, MIN and MAX are often used, but TOP with either asc or desc on the sort...
  11. M

    Form with subform in transaction

    As you are looking to treat updating the parent and child/children as an SQL transaction, you can either save the original state(s) of all values so it can be rolled back OR (if you really want to spend some time on this) you could create an array for each field to allow you to store its values...
  12. M

    Solved New detail records being added despite disabled button in master form

    @BlueSpruce What is the business driver for employees to enter these contracts? Is this something that management can control with proper rules? I am guessing someone is doing this to pad their pay. If this is true, proper response from management should be termination of the employee for...
  13. M

    Table Design and Efficiency Help

    @mfk5331 I would make sure exactly how they want to track statistics for KPIs. Normally instead of saving a "Shift" in your values, you can either store each value with the date/time it was entered (say amount of a sale) or a date/time for each shift start so you can track statistics from one...
  14. M

    Form with subform in transaction

    @OP, A couple questions that may dictate your approach. 1) Do you need to associate physical items (inventory, vehicles, what not) to a given transaction? If yes, you'll need to work out assignment and roll back if the customer doesn't go forward with the transaction. This pretty much requires...
  15. M

    Strange query behavior

    For normalization, instead of saving "SUPERVISORCODE_I", you would normally save the AutoNumber ID for the record.
  16. M

    Solved Report Sent to Printer?

    Additional item you may want to check into. What happens if a user prints your report to a PDF then sends the PDF to the printer? Is that out of scope of what you are trying to catch?
  17. M

    Solved Multi-Select List Box, Distinct Values

    Easiest way is to make sure your source is distinct. Not sure what you are really trying to do with this as it looks like you are parsing out part of field after selecting. Is that something you could break out before creating your list?
  18. M

    Solved Email current record for form

    As an option, you can create your "Repairs" as a text string. You would then pass your string as the last parameter. This would allow you to skip creating an attachment. Something like strBody = "Tenant " & frm_repairs.Tenant & " in building " & frm_repairs.TenantAddress & vbCrLf & _...
  19. M

    login page

    Giant benefit to using the OS login is you don't have to develop security. You have a major corporation working out how to keep your system safe.
  20. M

    How can I read newly received invoice files without having to re-read the old ones?

    Were this to be me, I'd copy in the contents, process, then mark each file as "Read Only" and "Hidden". That way you can't copy over them and you don't get them in your list next time you run through.
Back
Top Bottom