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 SkipVought 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: JeffH
  • Order by date
  1. JeffH

    One expression - for seveal Parameter Queries

    I think a solution might be to set the ID Number to a global variable, then have the query reference the ID Number global variable via a function... Something like this: Create a global variable in a module: public glngIDNumber as long Then create a function: 'Assuming your ID Number is a...
  2. JeffH

    Search using value received from listbox

    Try this...this is a function that will build a where clause based on selections of a list box. You can use this where clause as part of a SQL statement, or you can use it as a filter when opening reports/forms. Just plug it in to a module, and call it passing in the paramaters. If you have any...
  3. JeffH

    Crosstab Queries Driving Me Crazy!!

    I have a report that is pretty helpful when dealing with xtab queries. It's a "generic" report, simply call a procedure, pass in a title for the report, and the xtab query name as parameters, and it opens it in a report. This might fix your problems--I haven't used it in a couple of...
  4. JeffH

    Problems with linking tables

    When you are creating the queries, are you using the unmatched record wizard? I guess where I'm going with this, is that maybe the 45 records that are getting returned are the ones that don't match. But if you just create a NEW query (without wizard) and you create the join and it only returns...
  5. JeffH

    Radio Button Required

    Do the 6 radio buttons all represent 1 field in the database? If so, create an option group, put the radio buttons in there, then set the control source for the option group to your field. Then, depending on your database/workflow, you can either make the field mandatory, or check for a value...
  6. JeffH

    List Box help

    First I would change a couple things about your list box, set column 1 to the primary key and bind column 1. Then column 2 would be a concatanation of the last and first name, then just show column 2. (give a yell if you need more specific here) After that, I think the following function would...
  7. JeffH

    autonumber

    Also, if you just start to create a record, the auto number will increment. By just clicking on the 'New Record' button on the record navigation, it will increment your autonumber. The AutoNumber was not designed to "count" records, but rather to ensure uniqueness...I hope this clears...
  8. JeffH

    File Does Not Exist Error

    Thanks, I got it working with your second idea (browsing for file yielded same error)! I'm still puzzled though, Here is my code (init proc on form): do qlkpschclass.qpr THISFORM.lstClassList.ROWSOURCE='curClassLst' This gives me the same error but this works: do...
  9. JeffH

    Storing a reference number using a recordset

    I think this might work for, I think perhaps it is a little more complicated than you wanted though...what you need to do is create a table with the following fields ControlNumberCurrentNumber - Text ControlNumberMonth - Text 'Just in case you want to use MM ControlNumberYear - Text Create and...
  10. JeffH

    File Does Not Exist Error

    Hopefully this one is easy... I created a ListBox and would like to set the RowSource to a query. I set the RowSourceType property to Query .QPR, and the RowSource property has the full path to the .qpr file. When I try to run the form, I get the following error: File '<file name>' does not...
  11. JeffH

    click event of a command button

    What happens if you take the () off msgbox? Try using: MsgBox &quot;You have to enter a company_ID first to select the sectors&quot; or, if isnull(me!txtCompany_ID) then should work also.
  12. JeffH

    Embed Crosstab Queries in Reports

    If you post/send me your email, I can send you a procedure and a report that handles crosstab queries. Just call the procedure and pass into it the cross-tab query name, and a title for the report--easy as that. Jeff gus_hammond@zdnetonebox.com
  13. JeffH

    Code for importing a field with multiple pieces of data

    If I understand everything correctly, I think this code might work for you. It's a little crude and it does not take everything into account, so you might have to scrub data before it's run. Basically it assumes a new table named tblListType with 2 fields, IndividualID and ListType. As always...
  14. JeffH

    Export Fixed Width File - align numeric fields

    If I understand everything correctly...can you create a query and use the following expression: ExportField01: Format([lngNumberHere],&quot;00000&quot;) If the value of lngNumberHere is 25, then ExportField01 would have &quot;00025&quot; as a value. Then export the query instead of the...

Part and Inventory Search

Back
Top