Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: gaffonso
  • Content: Threads
  • Order by date
  1. gaffonso

    How do I tell if I'm on a "new" record in a form?

    I need to implement some default-setting behavior in a form. For various reasons, I can't use standard field defaults or the DefaultValue property of my controls so I'll need to program the solution. What's the best way to tell if the current record on a form is a "new" record...
  2. gaffonso

    Undoing changes on a bound, modal pop-up form

    I've got a modal pop-up form that bound to a table. The cancel button should close the form and ignore any changes. Problem is, changes made to fields on the pop-up form are committed after the user unfocuses on the field being edited. If a user makes a bunch of changes to various fields in...
  3. gaffonso

    How do I: Enter a Percent, Record a Decimal

    I've got a text box that maps back to a decimal field data type in SQL Server (in an Access Project). I'd like to offer the user the ability to type in an integer from 0 - 100 (the percent they desire) and have that be translated into the corresponding decimal value. I can do this with code...
  4. gaffonso

    Programatically Determing Table Name from Trigger

    In my quest to write a "global" audit trigger (one that does not contain any table-specific code), I need to determine the name of the table that fired my trigger programatically. In my audit code, I log the table name being modified. Without a way to determine that name...
  5. gaffonso

    Calling SP from Trigger (preserving INSTEAD)

    I've got a trigger written (thanks Terry) that's logging INSERT, UPDATE, and DELETE activity on my table. I'd like to re-use this trigger code on all my tables so I thought that putting it into a stored procedure and passing table-specific data from the trigger would be the ideal way to do...
  6. gaffonso

    More Trigger Trouble (Not Null)

    I'm trying to implement a simple auditing feature by creating a trigger that writes a LastModifiedID and LastModifiedDate to columns on each table in my database. The LastModifiedID and LastModifiedDate columns are not directly edited by a user, they rely on the triggers to be populated. In a...
  7. gaffonso

    Not NULL happens before a Trigger, right?

    I'm writing a trigger to write audit data to my table, it automatically inserts the LastModifiedID and LastModified date into fields on that table. I've put a Not NULL constraint on the LastModifiedID and LastModified columns. The problem is that a simple insert into the other columns (not the...
  8. gaffonso

    Find All (including user fields) in Outlook 2000

    Ok, I know how to use the Advanced tab to add user-defined fields into my Advanced Search criteria. But the real bummer here is that I just want an easy way to search on *all* fields in a form, including user-defined fields. Is there any way to do this? If not, is there a way to extend the...
  9. gaffonso

    Best way to track changes to a record?

    I'm designing a database in which I track changes made to each record. I've currently got a scheme whereby each table has a "LastModifedID" and a "LastModifiedDateTime" column. I intend to populate these with insert and update triggers. Is there a better way to do this? I...
  10. gaffonso

    Why can't I use a trigger to generate a non-int PK?

    I've seen several places now that a trigger cannot be used to generate a non integer Primary Key. I'm good with that but would like to read up on the details behind *why*. A cursory check of Books Online doesn't turn up this limitation. Where is it documented? Is there a discussion I can...
  11. gaffonso

    Trigger for generating Primary Key?

    I've fallen into the habit of assigning Surrogate (artificial) keys when doing my relational designs. I've got a client who needs a database with an "Intelligent" primary key on one of the tables. More specifically he would like the Primary Key to be a "Product Number" that...
  12. gaffonso

    How do I find references to Database Objects?

    I've got a database that needs some better organization. One of the things I'd like to do is change the query name to be more standardized and descriptive but changing the name is going to break forms, reports, queries, combox boxes, etc. that rely on those queries having their current names...
  13. gaffonso

    Need DateTimePicker for 97 - Suggestions?

    I'm building an application in Access 2000 and have used the DateTimePicker ActiveX control. My client requires delivery in Access 97 format. So far I've managed to workaround all the incompatibilities but the DateTimePicker thing has me stumped. Can I used the DateTimePicker control that...
  14. gaffonso

    Making a combo box open (pop-down) automatically

    I've got a combo box and I'd like it open up (pop-down and show the values as it does when you click on the down arrow) automatically. Is this possible? Thanks! - Gary
  15. gaffonso

    Related Combo Boxes on a Continuous Form

    I've got two combo boxes on a continuous form. The first combo box determines what appears in the second. This is currently done by creating a SQL query as the recordsource for the second combo box and having that query reference the value of the first combo box. As you probably know, this...
  16. gaffonso

    Setting default values to previous record

    What are the recommended techniques for setting a default field value to the last-entered value for that field? In other words, can I set the default value for a field (either the field default or the form-control default) to the field value of the previous record? Thanks! - Gary
  17. gaffonso

    Getting values of non-bound Recordsource Columns

    I've got a combo box whose Row Source is a query. That query has 4 fields: * CardType * CardTypeID * NumOfPrivates * NumOfIndependents The bound column is #2 (CardTypeID), it's the foreign key for this field. The only column shown to the end-user as a pop-up menu choice is the CardType (it's...

Part and Inventory Search

Back
Top