Search results

  1. Ranman256

    Clear text boxes

    sub ClearAllTextBoxes() dim ctl as control for each ctl in controls if Typename(ctl) = "TextBox" then ctl.value = "" next end sub
  2. Ranman256

    Lcase

    you didnt. Lcase should not erase the data in the field: MLINK3
  3. Ranman256

    Quarterly Statistics Query

    make a form that has the text boxes to set your date range: txtStartDate, txtEndDate. and txtPrevStartDate, txtPrevEndDate. make 2 queries to pull the source data range, qsDataDateRng & qsDataPrevDateRng qsDataDateRng= select * from table where [dateFld] between forms!fMyForm!txtStartDate...
  4. Ranman256

    Fee Table Design

    I have a tFee table: FeeName, Amt, Interval Rent , 400, M (monthly) this then supplies the tRecurringFee table for client charges: clientID, FeeName 1234, Rent every time period,(monthly,yearly, or 1 time only) a macro is run to add the fees to the tClientFeesCharged table.
  5. Ranman256

    How to close a form that is open in ShowDialog, from another form

    you cannot shut a dialog from another form BECAUSE its in dialog. Just close it from the dialog.
  6. Ranman256

    Microsoft Access: Is it still relevant in 2022?

    We use MANY databases daily. It is the workhorse for our company. We will not be abandoning it.
  7. Ranman256

    Syntax Error Missing Operator

    put IIF statements in the query, not the report. then you can inspect the data returned.
  8. Ranman256

    Combine 2 tables and at the same time write it to a third table

    In a SELECT query, take 2 tables,join them, bring down the fields onto the grid, then click MAKE table button. write to the new table.
  9. Ranman256

    IsNull - HALP

    ISNULL is for query criteria in vb code / formulas: IsNull(field) iif(IsNull([FY S&S].[Report]![S&S#Commitments]),0,[FY S&S].[Report]![S&S#Commitments]))+[TotalCommitments]
  10. Ranman256

    Solved Need Help

    Run the query (not the form) with known criteria that will return a result. make sure the joins are correct.
  11. Ranman256

    Solved VBA copy data from one database to another

    dont really need vba. Link in the target tables to copy to, as external linked tables. make append queries to add the local data to their target tables, put all these queries in a macro. put the macro in the button click event.
  12. Ranman256

    Can't open database

    sometimes opening a different version can cause problems in the REFERENCES. Enter VBE (alt-F11), tools, references, see if anything checkmarked says MISSING. uncheck it, and scroll down to load the correct version. then compile it (in VBE): menu, debug, compile. any errors show?
  13. Ranman256

    Table Design Input

    i actually do wire db. I have a tWire table, holds the WireID, gauge, color, etc. a tCut table holds the compound wire result: CutID, Wire1, wire2, wire3, wire4, CutDate, etc the parallel cut will fill 1 thru3 or sometimes 4. these fields are filled with the key from tWire table.
  14. Ranman256

    limit the amount of forms to certain people

    I have a tUsers table with their login I’d, and their ‘level’. userID,Level bsmith, M tJones, U normal user, manager, admin when the app opens, the main menu grabs the ID ,then looks up the level, then disables buttons some users cant get to. sub Form_Load() txtUser = Environ("Username")...
  15. Ranman256

    Add or Remove column from same report by selecting checkbox

    the chkbox event would show or hide the field sub chkBox1_Afterupdate() txtBox1.visible - chkBox1.value end sub
  16. Ranman256

    How to call a procedure from a module?

    Make sure the Afterupdate is Public ,not Private, the use the full path to call it: forms!fMyForm!cboBox.AfterUpdate
  17. Ranman256

    number of record from query and two combo boxes

    what about: if [sc_main] is numeric: dcount("*","t_rec","[sc_main] =" & Forms![TR jours par Service]![sc_cbo]) or if [sc_main] is text: dcount("*","t_rec","[sc_main] ='" & Forms![TR jours par Service]![sc_cbo] & "'") the form path is outside the quotes.
  18. Ranman256

    Order Form Saving Behavior

    You MUST save the master record 1st. This generates the autonum ID. THEN you can enter subform data.
  19. Ranman256

    Front End Distribution Using SQL Server as Back End

    I have a list of user IPs. when I click a button, the code copies the new FE to their folders. at another site, each user has a personal network folder to copy to. Everyone gets updated.
  20. Ranman256

    How do I create this report? (Access newbie)

    1. make Q1 that pulls data in a date range you need. use a form for the start , end dates. ie: forms!fMyForm!txtStartDate 2. use query wizard to make a crosstab query using Q1 to create tbl1,tbl2 data. in this xtab qry ,add the 2 date params in the query design, click PARAMETERS ,enter...
Back
Top Bottom