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 Shaun E 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: lastout
  • Content: Threads
  • Order by date
  1. lastout

    Mysterious empty Query appears?

    I've searched high and low for some reference to what this thing is but have found nothing. I have three queries in my database. I'll be working in a form that is based on a query and more or less everything is fine. After using the forms, if I then go to the query window there's this...
  2. lastout

    Alternative to DLookup?

    Is there an alternative to DLookup? I seem to remember reading somewhere that DLookup was antiquated and that newer versions of Access have a new way of doing the same thing. Also, can DLookup's use variables? I have the following but it doesn't work because there is more than one field on...
  3. lastout

    Automatic Update of ID's While Form is Filtered

    I have a database of tenants for various buildings. When a user needs to add a new tenant to a building they have to select the exact building from a combobox then that building (using its ID number as a global variable, intProjectID) opens the "Add new tenants" form filtered for just...
  4. lastout

    >2 tables/queries in a query still updateable???

    I think I'm really missing something fundamental here. I have a few tables that are just about as normalized as they can be. They are tblTenants, tblApartments, tblVoucherStatus, tblNotices, and tblDates. Each tenant has an apartment (they may move from one apartment to the other in this same...
  5. lastout

    Date/Time custom format

    I have a field YearFiled in a table. The data type is Date/Time and I want the format to simply be yyyy. I put that in the field's format property but every time I enter a date, say 1973, it tells me what I've entered isn't valid for the field. Can anyone tell me what I might be doing wrong here?
  6. lastout

    Setting FilterOn to False in cmbox causes Type Mismatch error 13

    I posted the question a few threads down, Thread705-421739. To reiterate the question.... I have a combobox on a form that is used to search for the record that matches the selection in the combobox. I originally set it up using the combobox wizard which inserts the following code behind the...
  7. lastout

    combox search causes Type Mismatch error 13

    I keep running into Type Mismatch error 13 (is this really a bug in the program?) when I try to use the standard combobox code to find a record based on the selection in the combobox but add in a line to turn off any pre-existing filters. The code is: Dim rs As Object Me.FilterOn = False...
  8. lastout

    how to handle subform references in code

    I have three related questions: 1. When you open a form that contains a subform, does Access consider the subform "open" as well, I mean in the sense that it goes through the load and open procedures? 2. If you open a form that contains a subform, how do you refer to that subform...
  9. lastout

    customize text in a message box

    I know it's possible to center, bold, italicize, change the font or color of the text in my own custom message boxes (VBA). I read it somewhere a while ago but, now that I want to do it, I can't recall where. So many books, so many websites. Can anyone help me out with this? For instance, if...
  10. lastout

    new subforms not showing up in VBA Project Explorer

    The last few subforms I've created aren't showing up in the VBA Project Explorer window. When I try to refer to them in VBA code I get an error message saying that Access couldn't find the subform referred to (fyi: I'm not trying to do anything complicated at the moment, just set the focus to a...
  11. lastout

    MsgBox if combobox selection has no matching record

    I have a simple combobox that is used to find and bookmark a matching record on a form. I just used to the wizard to create it since it's easy and it works. The code is: Dim rs As Object Set rs = Me.Recordset.Clone rs.FindFirst "[EntityID] = " & Str(Nz(Me![cmbSearchbyEntity], 5))...
  12. lastout

    How to have Search form's selection become RecordSource of a report?

    I have a search form that has a bunch of unbound comboboxes from which the user selects values and then clicks a search button that builds an SQL string based on the values entered. The results are then assigned to the ControlSource of a subform. The user can execute as many different...
  13. lastout

    Trigger MsgBox when user tries to change data in a read-only recordset

    I have a subform on a main form that shows the results of a query. The records are read-only. If the user perchance tries to edit any of the records in the subform, I would like to have a MsgBox popup telling them they can't edit there (similar to the msg you get in a query window when you try...
  14. lastout

    Setting textbox's ControlSource from code not working

    I am trying to set the ControlSource of a textbox in code but keep getting the "#Name?" result. The idea is to have the textbox show a concatenated string that includes a variable. Me.tbxResults.ControlSource = "Search results for your query by " & varCity But this...
  15. lastout

    Select Case doesn't work after change

    I am trying to develop a search form that allows the user to search for records based on various criteria of their own choice. Right now, I'm testing a Select Case block with some If..Then. statements. Yesterday the Select Case block was working for the most part. Then, to take care of a...
  16. lastout

    Set the RecordSource of a subform in code

    I have a form where the user selects values from a few comboboxes and then hits a Search button that populates a listbox with the records that match those values. That works but, instead of a listbox, I would prefer to use a subform (because subforms can show the record count, etc.) but can't...
  17. lastout

    How to format msg text in MsgBox?

    I have read somewhere I can't remember where exactly (too many books, so many inadequate indexes) that you can format text in a message box. Things like change the font, center the message, set the font color, etc. Actually, wherever it was I read this, I noted at the time that the author...
  18. lastout

    Close form on vbCancel

    The following If...Then block is supposed to perform different commands on form based on whether the user clicks vbYes, vbNo, or vbCancel. It all works except for the vbCancel. If the user clicks vbCancel, I want the form to close. What happens instead is that the MsgBox closes and the focus...
  19. lastout

    I posted this question once before

    I posted this question once before but, alas, I dropped the ball on the thread, so I'm posting again. I have a form, frmProperty, that can be opened via command buttons from two places: from the Switchboard and from frmOwner. When frmProperty is opened from the switchboard, the user is most...
  20. lastout

    Load/Activate Form depending on where Form called from

    I have two forms that both can be loaded from a main switchboard. There is a button on Form B that can also load Form A (but user cannot go from Form A to Form B). When loaded from the switchboard, the OnLoad event takes the user to a new record and maximizes the window. When the user is in...

Part and Inventory Search

Back
Top