Search results

  1. C

    Syntax to have a query call a form

    No, No, No! You're getting your knickers in a twist as we say over here!:) On form 1, you have 2 combo boxes (cbo1 & cbo2). You select "Alabama" from cbo1 and "Hominy grits" from cbo2. You then click a command button WHICH CALLS FORM2(from its On_Click event), not a query. Form 1 remains...
  2. C

    Syntax to have a query call a form

    Yes, it will work. I don't exactly know what you want to do, but as David R says, you can have as many criteria as you like. Your query can get its criteria predefined from a form field (or fields), a combox (or boxes) or you can call them as parameters at run time. If you call them as...
  3. C

    trouble with merging info

    See what I mean? How are your field names, Pete?:D
  4. C

    NO Save

    Look up the Close method in help
  5. C

    3 Fields: First, MI , Last Name = UserID

    Left([Last name],6)&[MI]& Left([First Name], 1)
  6. C

    trouble with merging info

    It's not necessary to post the same topic in three forums. It leads to confusion. Did the answer I gave in the Queries forum not work?
  7. C

    beginner's question

    Did you get my post describing how to use an append query to put zeroes into "absent fields? " Didn't that work?
  8. C

    Syntax to have a query call a form

    What you are describing is equivalent to opening a form based on a query, isn't it? Provided that the recordsource of your form contains the name of your query,you can alter it at will by using parameters which are called when you open the form. Is this what you want?
  9. C

    Searching Question / Issues

    Sam? There are better ways to approach a searchable database that uses keywords http://www.asksam.com/downloads.asp try this link.
  10. C

    Lookup

    It's eminently possible, but pointless! In effect, you are performing a simple calculation to derive the second field. But if you want to return that value you can simply do the calculation at the time it's needed. And your table is half the size. But, if you insist, you need a form based on...
  11. C

    beginner's question

    You get your data into a new table each time then? And you want to append the data to a master table? Make sure the field names are exactly the same in both tables. All fields must be present in the master table, but not always in the imported table. Construct an Append query which uses the *...
  12. C

    Open a form using a VBA Sql statement

    A filter is really a query or a subquery. But in this context it's not the same as an SQL statement because it's saved and appears in the database window. Say you have a table and you want to frequently look at Customers from Alabama, Baltimore and China. If you don't want to enter parameters...
  13. C

    Remove the "Sumof" Prefix from Column Headings

    access xp automatically updates all field references when you change a name.
  14. C

    Open a form using a VBA Sql statement

    It's because the form must be open, but hidden, when that line is executed. Shift the OpenForm line above the statement. Use the Hidden windowmode to open it. then use Forms!myForm.visible=true to display it
  15. C

    beginner's question

    How do you get the info and add it to your table? Presumably you add rows, some of which contain nulls. Run an update query on your table to update all null values to 0
  16. C

    Open a form using a VBA Sql statement

    Yes, that's why you need to replace the existing recordsource (your table) with your complete SQL by putting a statement like Me.Recordsource=strSQL in the code before you open the form. Me may need to be replaced by the full form reference if this is in a standard module
  17. C

    Remove the "Sumof" Prefix from Column Headings

    Tess, your humility does you, and your nation, great credit. Yes, that is what our postmen have to endure, plus savage dogs and seductive overtures from bored housewives. They wreak revenge by stealing our credit cards and disembowelling our letters. It's not all cakes and ale here... Glad...
  18. C

    Remove the "Sumof" Prefix from Column Headings

    O yes you can! Change field names I mean. Provided you buy a recent copy of Access.... or perhaps you've spent all yer cash on a puncture repair outfit?:D
  19. C

    Open a form using a VBA Sql statement

    DoCmd.OpenForm formname[, view][, filtername][, wherecondition][, datamode][, windowmode][, openargs] wherecondition A string expression that's a valid SQL WHERE clause without the word WHERE. An SQL string must go after the third comma, not the second. Your form is opening with its...
  20. C

    syntax

    Square brackets go round FIELD NAMES that contain non-alphanumeric characters. (eg. those with spaces) Field Names without spaces can be optionally square-bracketed. The specific syntax for a command can be found in HELP. So for example, for your DOCmd.Open query Help gives: DoCmd.OpenQuery...
Back
Top Bottom