Search results

  1. C

    variable not defined error

    Could anyone maybe explain why I would be getting this error. I have been using this db and made a couple of changes and now I get this error when I try to compile it. Private Sub addtocustomer_Click() DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70 Dim...
  2. C

    acCmdSelectRecord

    thanks for the reply I will just use conditional formatting on each field then.
  3. C

    acCmdSelectRecord

    by reading several posts I came up with the DoCmd.RunCommand acCmdSelectRecord to highlight a record in a subform in datasheet view. My question is, is there any way to adapt a gray background color to the selected record instead of black?
  4. C

    Form based on query creates problem

    Thank you I will look up the samples and give it a whirl.... I will definitely not be using this for order entry, as I am a novice and am thankful to have made it this far. Wish I could adapt order entry but I am a far cry from being able to accomplish that.
  5. C

    Form based on query creates problem

    I think we're getting somewhere So I wasn't really to far off with my original design having the cost and the um in the tblparts. I have to say that I don't know very much at all about vba and I think that is what I need to make the beforeupdate event of the subform store the cost history. ...
  6. C

    Form based on query creates problem

    ? I am getting a "cannot add record(s): join key of table 'cost of goods' not in recordset what does this mean.
  7. C

    Form based on query creates problem

    Correct me if I am wrong I understand what you are suggesting, so what would the recordsource for the subform become. I am using a query but this is giving me problems with entering a cost before a part record has been created and the u/m field may work if I just lock it. But how would you...
  8. C

    Form based on query creates problem

    i'm sorry This was a sloppy db to post. I originally had the unitprice in the product table and everything worked great except I had no way of keeping track of price changes. It was then that I created the cost table and queries. I am totally lost on a good way to be able to view the current...
  9. C

    Form based on query creates problem

    Haven't tried this yet Pat, I am somewhat confused on the what you are telling me to do. I don't think this will work for a subform set to continuous records will it. In the file I attached, notice that this program is only used as an informational source and not a purchase order program...
  10. C

    Form based on query creates problem

    not sure what you mean Not sure what you mean. Are you saying on the form use a combobox and have it find the correct part price. If so could you elaborate because this would be on a subform doesn't that make it all kind of tricky?
  11. C

    Form based on query creates problem

    ??? Subquery? that's something I'll have to read up on. and the dmax() function, where would I add that to make that function. Would it still be possible to add a new record in my subform?
  12. C

    Form based on query creates problem

    Maybe this will help I have attached a file with the exact form i am using. What I need to do is be able to keep track of the price changes but everything I am trying is not giving me the desired results. Does anyone have a suggestion on how to add this feature and still keep the form working...
  13. C

    Form based on query creates problem

    table added small example of tables is Parts: PartID PartName Description CostofGoods: CostID PartID Cost U/M PartID's are linked one to many Then I have a query: (LastCostDate) SELECT CostofGoods.PartID, Max(CostofGoods.Date) AS MaxOfDate FROM...
  14. C

    Form based on query creates problem

    Everything was great until this. I have a form which the recordsource was built with the sql, query builder option. My form worked great and I could add or change anything I wanted to. But I had to have a way to keep track of price changes so I add a table. Then I had to use a make a query...
  15. C

    Relocate record after requery

    response to pat harman Because what I have is a main form with a list of parts. Beside this list of parts is a total on hand which the main forms recordsource calculates. The second form that is opened allows the inventory to be updated and after it's updated I need the correct total on hand...
  16. C

    Relocate record after requery

    I have a subform that after update, requery's the main form. Can someone please tell me how to write code to relocte the main form to the record it was at before the requery? Thank you in advance
  17. C

    How do I set an unbound forms filter on open

    Thank you Nouba this works perfect:)
  18. C

    copying information from a subform to a main form

    same problem I am trying to accomplish this same task for this reason. My mainform is a continuous form that I need to be able to view the total on hand amounts for each record. then I have a subform that does the individual calculations. But if I don't store the values in a table then the...
  19. C

    How do I set an unbound forms filter on open

    I have an unbound form that I use a combo box to filter records. When the form is opened it shows all records and the combobox is empty. Can I set the value on of the combobox to the first item in the list and filter it on open.
  20. C

    Saving last 5 search items

    I have a search form that I would like to add a feature to. The search form has a textbox that queries the results of the search form. Upon close I would like to save the value of this textbox. Then I want to add a 5 line listbox to the search form that can display the 5 most recently searched...
Back
Top Bottom