Search results

  1. C

    Creating a report from a data entry form

    To get data into a query, you need to save it in a table. You might want to find a good Access reference book (try the Que books, there are others). If you just want to reference a form field in a report, do something like this in the control source of a text box...
  2. C

    bottom margin

    Two things might be happening. One is that there is an absolutely boundary that your printer can't go beyond. Depending on how close you are to the edge, you may just have found it. The other is that you may have "name autocorrect" set on. Try turning that off. As a side effect, it can keep...
  3. C

    saving/archiving reports

    Taking a different tack... Running a date-based report is not necessarily going to give you the same results as saving a report that is a point-in-time picture of your data (what about deleted records???) (what if you change the table structure???) If you want to archive a report, you can do...
  4. C

    filter by selection button

    This is how I filter records to show a specific plant, selected from a combo box: ' Dim these fields Dim theFilter As Variant Dim thePlant As Variant 'then in your filter button click event 'you would want to add error routines, etc thePlant = Me.cboPlant theFilter = "[Plant] = '" & thePlant...
  5. C

    Calculation and Converting Yes/No to integer.

    Or use the constants True and False. Much easier to remember: If [Tax] = True then 'calc tax else If [Tax] = False then 'you do not live around here...
  6. C

    Placing one field from sequential records in sequential order in a report

    I'm not entirely sure that I understand what you want to do, but it sounds like rather than seeing: Answer A. Answer B. Answer C. You want to see: Answer A. Answer B. Answer C. To do this, put a text box on your report, give it a name, then set up the control source like this: =[FIELDA]+ "...
  7. C

    adding new field to exisiting form (or report)

    Maybe this will help. Basically, there are forms that pull in their data from a query or table ("bound" forms), and forms that don't ("unbound"...a menu would be a good example). You can tell by looking at the properties for the form, and seeing if the Record Source is filled in. If your form...
  8. C

    URGENT: code needed for VBA sub to link 2 textboxes!

    You might want to do this in the after update event for Box 1. You'll need to use the value from Box 1 in a Dlookup statement, which will find the value for Box 2, and then put that into Box 2. Guess I don't mind answering questions at all, but you have to put a little effort into it, too...
  9. C

    Creating Columns

    Do you want the data inside each box to wrap, or the entire row of boxes to wrap?
  10. C

    Margins and paper tray settings won't stick!

    If you are using Access 2000, this is a know problem with the "Name Autocorrect" settings. If you have autocorrect set on, Access very kindly "autocorrects" the margins for you. (And if your users have this option set on, the margins will get messed up there...) You can reset the option in...
  11. C

    Report in form

    What do you mean by "inside"???
  12. C

    You've already chosen that

    I think that you would have to do a dlookup in VBA to see if the field was already used.
  13. C

    Got/Lost Focus and highlighting the field

    Hmmm...exactly when do you want the background to change? You need to put (or call) the code in the proper event. Also, are you familiar with the debug window? I'd set a breakpoint & then watch to see if the code is ever executed.
  14. C

    Got/Lost Focus and highlighting the field

    Here's a way to cycle through groups of fields on a form. You could easily modify this to go though all the fields, but usually I've found that there are some that I do not want to change. Here goes. Use the "tag" property for each field that you want to change, and give them a common name...
  15. C

    Page breaks for 2 or 3 records per page

    Have you tried the "Keep Together" property???
  16. C

    Print current record

    Maybe it would help to step back a minute... First, a query. Sometimes you can just run with the query that your form is based upon. Otherwise, this may need to be a parameter query that will use some screen field (hopefully the record ID?) to select the right record(s). (Hint: Open the...
  17. C

    Need help with code for form entry using Username and Password

    More information please. What sort of database are you using? Is your data in Access or in SQL Server or Oracle or ??? The answer depends on this. Then on part two, once a table is updated, then any query will include the latest data. If you want to set up a query that uses beginning & end...
  18. C

    one to many relationship problem :/

    I'm not really clear whether you have one query or more than one. If I were doing this, I would make as many queries as I needed to get the various elements, then join those queries into one for use in the report.
  19. C

    make default page setup

    If you are using Access 2000, there is a weird bug that can change your page setups without your knowledge. The fix is to turn off the "name autocorrect" feature (tools==>Options, General tab). The problem is that everyone has to do this on their own machine... It is possible to reset this...
  20. C

    Invalid use of Null (Error 94)

    I would try changing this: strEmail = rsEmail.Fields("EmailAddress").Value DoCmd.SendObject , , , strEmail, , , rsEmail.Fields("Matric No").Value, "This is an automated e-mail. Please do not respond", False To this: strEmail = rsEmail.Fields("EmailAddress").Value Iif(len(strEmail) > 0 then...
Back
Top Bottom