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 John Tel 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: tvsmvp
  • Content: Threads
  • Order by date
  1. tvsmvp

    Working with ranges - counting subgroups and assigning numbers

    I think I've been trying to reinvent the wheel for about two days now. Using a query (as opposed to a macro I'd have to run to update my table) I need to count how many entries in my db live in a particular state - and break these entries down into groups of, let's say 15, placing a...
  2. tvsmvp

    How do I pull info from the next record?

    How would I pull information (into my form) from the next or previous record? I've tried this: Me!NextPartTitle.Value = DLookup("[PageTitle]", "Articles", "[ID] = " & [ID] + 1) which gets me into trouble when the id doesn't exist. Do I have to loop till it finds a higher-numbered ID? Or...
  3. tvsmvp

    How do I tie an event to hitting the enter key?

    Okay -this answer's gotta be simple, but I can't find anything in access help. How do I tie an event to someone hitting the "enter" key after putting info into a particular text box?
  4. tvsmvp

    How do I sort a query when one field is based on a UDF?

    How do I get my query (which creates the row source for a list box) to sort correctly when the column I'm sorting on is a UDF? Apparently it's sorting before doing the calculations - not after. Rerunning the query in the list box's after change event simply reruns the query - which of course...
  5. tvsmvp

    Quotes in a query: when to use single, double and none at all

    Well, I've shot the last six hours or so trying to figure out where, how many and what type of quotes to use. I know this has got to be pretty simple - but I can't seem to see the rhyme and reason to how/when to use them. I'm loading up the row source for a list box with a query. Picking up...
  6. tvsmvp

    Data type mismatch in criteria expression in my totals query

    I'm getting the infamous "Data type mismatch in criteria expression" in my totals query. The field causing the trouble is created in a separate query by simply adding the values of other fields like so: Score: Str([Count1]+[Count2]+[Count3]+[Count4]+[Count5]+[Count6]) From what I can glean...
  7. tvsmvp

    My form won't synch to listbox when opened from switchboard

    Why does my record not "synch" when I open the form from the switchboard? It opens fine when I simply double-click on the form icon - but nothing I've tried will get it to synch if opened directly from the switchboard. I have this in the sub-form's code module: Dim rs As Object Set...
  8. tvsmvp

    How to create connection between form and subform

    This has gotta be really simply - but somehow I can't find this needle in a haystack: How do you associate a form with its subform so that you only see related records in the subform instead of everything?
  9. tvsmvp

    How would I keep count of number of characters entered into control?

    Is there a way to count how many characters are contained in a particular field? In other words, keep a running count of how many characters somebody has typed into a control? Would I use the instr function - or is there a more automated way?
  10. tvsmvp

    Connecting two tables and using yes/no efficiently

    I've got products that I'd like to associate with a topic (that is, "Widget A" is related to "Using Widgets" and "History of Widgets.") I'd like to make this association via a simple yes/no check box - and at least when creating the association, I'd like to see a large checkerboard pattern...
  11. tvsmvp

    Why will my subform not resize automatically?

    I've got a subform being displayed in datasheet mode. Problem is: it shows just the first one and a half lines - and cuts off the rest. I've got "can grow" set to yes for the "details" section of the subform. I have noticed that when I first open the form, the subform will automatically...
  12. tvsmvp

    How do I replace leading zeros in my zipcodes?

    I have received a database loaded with addresses - with the zipcodes formatted as numbers (which, I believe is incorrect). Naturally, when I try to print them out zips from the east coast (the ones using a leading zero) appear with four digits. How do I put back the leading zeros in access...
  13. tvsmvp

    Deal with errors when image doesn't yet exist

    When I'd like to load an image onto a form, how do I deal with the error that results when the image doesn't exist? I can exit the sub based on "on error" - but that won't work when there are several images on the page (because each has its own error message). As you can see, I've...
  14. tvsmvp

    How do I change check box based on change to text box

    I would like to check a checkbox when I make a change to a corresponding text box. If the text box is empty, I'd like no check, and a I'd like to see a check if anything is in the text box. (Both text box and check box are bound.) I've tried the following code - and it will tick the box - but...
  15. tvsmvp

    screen update

    In excel we can speed up code execution and get ride of screen blips by turning off screen updating - is there such a thing for access?
  16. tvsmvp

    Requery or repaint to update all control values on a form together?

    Is there a way to force all the controls on my form to update to current values simultaneously whenever I change a value somewhere on my form (via any and all controls)? I'm ending up with a bazillion strings of identical code, each attached to the event of several controls - when there's gotta...
  17. tvsmvp

    GoToRecord: How to jump to record based on control

    I'm trying to use a dropdown/combo box control to move all fields (on my current form "WhereWhen") to a particular record. "Events" is the table "EventID" is the field "WhereWhen" is the form "WhereWhenEventCombo" is the name of the combo My best attempt so far: DoCmd.GoToRecord , acGoTo...
  18. tvsmvp

    Where is the code for the form?

    I've created a form; it pulls its info not from a single table but from a query (which pulls from two tables). When I switch over to VB I see pages (housing code) named after every form except this one. So... I don't know where to (or if I can) insert code created for this form. Am I supposed...
  19. tvsmvp

    Creating list for combo box using multiple fields from current record

    I would like to add a combo box to my form. I have four fields (in each record, naturally) that I would like to offer in that drop down box. That is, I've entered a single city into each of 3 or 4 fields and want a drop down that offers those three/four cities for selection (as opposed to a...
  20. tvsmvp

    DLookup criteria issues - does form need to be refreshed?

    I've got "dlookup" working just fine: I enter a zip code, it looks up the correct city and state name abbreviation. But... I when I enter that zip, I also want to retrieve the full state name (in "proper" format) from another table based on the state abbreviation retrieved. It ain't working...

Part and Inventory Search

Back
Top