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 strongm 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: *

  1. zach028

    Tried to execute a query that doesn't include the specified expression

    I have a whole lot of forms, queries, and reports already set up to look to that field, so for the time being I'll switch to the make-table query to get it done. I look forward to seeing any solutions you have to offer! thank you!
  2. zach028

    Tried to execute a query that doesn't include the specified expression

    Well, I just pulled two of our progammers over here to look at this and they couldn't figure it out. When I first set this up (about two years ago), I had a make-table query and then an update from that query. I couldn't figure out why I ever would have done that, but I guess it was because I...
  3. zach028

    Tried to execute a query that doesn't include the specified expression

    OK, so I can't do it that way. Here's what I originally had as my SQL statement: UPDATE [MAIN] INNER JOIN [PAYMENTS] ON [MAIN].acctnum = [PAYMENTS].acctnum SET [MAIN].curbal = [MAIN].[amtclosed]-Sum([PAYMENTS].[pmt]); I still can't see why this won't work! I appreciate you sticking with me...
  4. zach028

    Tried to execute a query that doesn't include the specified expression

    UPDATE [MAIN] INNER JOIN [PAYMENTS] ON [MAIN].acctnum = [PAYMENTS].acctnum SET [MAIN].curbal = Expr1 WHERE Expr1 = [MAIN].[amtclosed]-Sum([PAYMENTS].[pmt]); Here's the SQL. I added the table name to the where clause (I didn't have it in before). Now it tells me "Can't have aggregate...
  5. zach028

    Tried to execute a query that doesn't include the specified expression

    I'm trying to run a query and am getting the error message "You tried to execute a query that doesn't include the specified expression as part of an aggregate function or grouping" I've been all over the net this morning and can't find something that will help. Here's the scenario...
  6. zach028

    Playing Poker with Access

    I have a database that is being used by bill collectors to collect on accounts. At the end of each month, through the use of a combo-box, they designate for each account whether they would like to keep it or get a new one. They are only permitted to have 10 accounts at a time. I currently...
  7. zach028

    Report totals

    My info is coming from 97 but I think it will still apply. Under "view" click on "grouping and sorting". Use the drop-down box to add major and make sure you are grouping by it and not just sorting. Also be sure to set to "group footer" to yes. On the report...
  8. zach028

    "Database" isn't an index in this table

    Thanks Gord. I'll consider this one a loss. Zach
  9. zach028

    "Database" isn't an index in this table

    ...I am trying to recover but am running into problems. I can't import anything from it. At all. All I get is the same error message. There are no *.ldb files out there. I also have disabled the AllowBypassKey function. Could I ever recover it or is it gone? Note: This is not a big deal...
  10. zach028

    Use code or a macro to change field formats in tables

    Thanks again for your help Paul. This will definitely work :)
  11. zach028

    Use code or a macro to change field formats in tables

    OK, I've worked around this problem. All I did was create a new field in the table and update it with the value from the old field. Here is the code if you want to see.... Dim db As Database Dim tdf As TableDef, fld As Field Set db = CurrentDb Set tdf = db.TableDefs("Homeq") Set...
  12. zach028

    Use code or a macro to change field formats in tables

    OK, that did work, but not how I wanted. I see that I may have been confusing you with my terminology (my bad!). That code left the Data Type as text and changed the Format to currency. I want to change the Data Type to Currency and don't really to do anything with the Format. Thanks for...
  13. zach028

    Use code or a macro to change field formats in tables

    I'm not sure if a Format Property is set. Looking at the table design, there is of course a data type (text), but nothing is set in the format options. I tried running the code anyway, but it didn't do anything at all. Is it possible to set a format property using code? Maybe by Setting p...
  14. zach028

    Use code or a macro to change field formats in tables

    Quite simply, I am trying to format field "CURRBAL" in table "Homeq" to a currency format.
  15. zach028

    Use code or a macro to change field formats in tables

    Is there a way to do this? I set up this function but Access asks me to define "Tables". I don't think this function is meant to work with tables but I don't know what else to try. Can anyone help? Function FormatValue() As Integer Dim val As Variant val =...
  16. zach028

    Select a record based on the value of another record

    Dave- Thanks for the formula. I had to adjust a bit since there are labels in all the fields in column B, but it is working well now like this: =IF(AND(ISNUMBER(A2)),A2,IF(AND(ISBLANK(A2),ISTEXT(C2)),B1,"")) That should take care of all of my problems. Thanks again to all who...
  17. zach028

    Select a record based on the value of another record

    Mongooses, I've been able to separate the '101' from the 1,2,3 so they are now in different columns. My problem is that I need to do several summaries with multiple categories each (e.g. 101,103,107 and 102,104,105,106) Thanks for the input, Zach
  18. zach028

    Select a record based on the value of another record

    The table comes from another program as a .prn file. I just figured out that if I import it to Excel first with fixed column widths I can split the categories. This seems like too much work though as I would still have to type in 3 101's, 3 102's, etc. With the volume I'm working with, I...
  19. zach028

    Select a record based on the value of another record

    I don't think this is possible, but I'll ask anyway... I have a pre-formatted, 2-column table that looks something like this.. 101 1 # 2 # 3 # 102 1 # 2 # 3 # 103 1 # 2 # 3 # etc... I need to summarize 1,2,3 based on the value that precedes them (i.e. add...
  20. zach028

    Select date range from mulitple fields on a single record

    Rick- I must say you've been most helpful. Everything is running smoothly (for now). I appreciate your time... Zach

Part and Inventory Search

Back
Top