Search results

  1. Fornatian

    Framing a repoert page with a rectangle

    Rephrase: THAT Line method will not work for this. Cheers Realnine.
  2. Fornatian

    Framing a repoert page with a rectangle

    The Line method will not work for this.
  3. Fornatian

    blank records inserted

    As a quick workaround why not only enable the button ONLY when the DCOUNT is greater than zero. I like to do this using this trick: If DCOUNT(whatever)>0 cmdMyButton.OnClick = "[Event Procedure]" 'button does event procedure ELSE cmdMyButton.OnClick = "" 'clicking button does nothing END IF
  4. Fornatian

    Problems with a report based on a query

    If you have a small dataset in A97 I can look at I can look at it for you and try and resolve your issue. formatian@aol.com put "Access World Forums" in the header because I delete anything and I mean ANYTHING I can't recognise - my fiancee has given me numerous b*ll*ckings for deleting her mail.
  5. Fornatian

    Problems with a report based on a query

    Sounds like you db is corrupted. Try importing the entire contents into a new database and try again. Does it do this on every report or just this one? Does it only do it under certain circumstances (i.e.if you build it from a query, or query with more than one table etc..) Also try it on a...
  6. Fornatian

    POP up report

    As far as I am aware you cannot find a particular on a report and move to that page. You can move to a particular page but because reports can be varying heights this is not a suitable solution. The best I can suggest is to limit the report to display only your desired record. This would not...
  7. Fornatian

    Insert query run in VB

    If it's a saved query you are trying to run you are using the wrong syntax. Use: Docmd.SetWarnings False Docmd.OpenQuery "YourQuery" Docmd.SetWarnings True
  8. Fornatian

    Help! My Access Database is too big

    Although discussed on many posts, I will reiterate. The maximum size for a db file is 1Gb (has this gone up to 2Gb for A2k?) A db file can have linked tables linked to other db files to create a file cosmetically greater than 1Gb to the user. A 306Mb db is big but not huge. We return to PC...
  9. Fornatian

    Arrays

    Just to throw something else into the pot, you can override the 0 base by using Option Base 1 at the head of the procedure.
  10. Fornatian

    POP up report

    When you say normal mode, what do you mean - you want to open the report in design view? If so... DoCmd.OpenReport "YourReport", acViewDesign Note: There are 3 constants when opening a report: acViewDesign = DesignView acViewPreview = PreviewMode acViewNormal = Sends To Printer
  11. Fornatian

    File Names

    I can't find the replace function in A97 so built my own... Private Sub Command0_Click() MsgBox strPictureName 'returns picture name End Sub Private Function strPictureName() As String Dim tmpStr As String 'builds string where / exists Dim sChar As String 'holds character to add Dim...
  12. Fornatian

    POP up report

    Check out the MousePointer help in VBA used as in: Screen.MousePointer = 1 'arrow
  13. Fornatian

    Filtering a form with a combo and a click

    Read up on the ApplyFilter and FilterOn methods in VBA - definitely right track..
  14. Fornatian

    Problems with a report based on a query

    You don't need a where clause if the relationship is perpetual you need to join the tables together as in: select DPT.DPT_NAME, ACT.ACT_NAME from DPT INNER JOIN ACT ON DPT.DPT_ID=ACT.DPT_ID ...or thereabouts
  15. Fornatian

    file import and wildcards

    this code returns the last file created in a certain directory... Dim tmpDate As Date Dim aFile As String Dim mypath As String Dim myname As String mypath = "c:\temp\" ' Set the path. myname = Dir(mypath) ' Retrieve the first entry. Do While myname <> "" ' Start the loop. ' Ignore...
  16. Fornatian

    POP up report

    It's a Chris Tarrant(UK Who Wants To Be A Millionnaire) thing - it's only easy when you know the answer. ::COUGH::
  17. Fornatian

    Do Until EOF

    John Doe? :) (not funny now you edited it from DOA to DAO above!) I think you mean DAO (Data Access Objects). If you use 2000 or XP I think ADO features higher in the priority list. Circumvent this by explicitly referencing your desired object type. Dim dbs As DAO.Database Dim rst As...
  18. Fornatian

    ListBox Help

    1. Use an append query to update the tblRoster table with the list box's value by setting the append value as Forms!YourForm!List0, changing YourForm obviously. 2. Then requery the listbox displaying tblRoster something like: Private Sub Button1_Click() Docmd.OpenQuery "YourAppendQuery"...
  19. Fornatian

    save button

    Ensuring you have completed all the required fields, closing the form will save the onscreen data to the table. In very simple terms, it is not like excel or word where you have to positively request a save, the data is saved as you work as you add/amend/delete records.
  20. Fornatian

    IIF Statement on a Report

    Either use a choose function to return the value in query: ReturnValue: Choose([Cond_cap],"FMC","PMC",NMC") or build a lookup table of associated values and join that to your query to return the appropriate string. Dependent on how likely these are to change will govern your decision as the...
Back
Top Bottom