Search results

  1. P

    Simple form question

    Try right-clicking on the empty space just outside of your form detail section, then click "properties". This should give you the form properties. If you want to add new fields to your form, you probably want to open the field list (View > Field List), then drag and drop the fields onto your...
  2. P

    Common Dialog Control

    Here are some links that might help: http://www.mvps.org/access/api/api0001.htm http://www.mvps.org/access/api/api0002.htm Regards,
  3. P

    How do you change the screen size when opening a .mdb

    Some users might not appreciate your application changing their screen resolution settings. There are third-party form rescaling solutions available that might help: A shareware version of a form rescaling module I wrote called ShrinkerStretcher is available at this web site...
  4. P

    Dont Understand!! I Tried!!!

    The TransferText method is for importing and exporting text files. You might want to use TransferSpreadsheet instead. See Access help under TransferSpreadsheet for more information. Hope this helps,
  5. P

    Creating a hyperlink in switchboard manager

    Yes, it is possible, but some modifications to modules are required. A free example of how to do it is available here: A Better Switchboard http://www.peterssoftware.com/abs.htm Hope this helps,
  6. P

    Dim As Database in Access 97

    dim dbs as database This requires either a reference to DAO or ADO. Check Tools > References from any module in design mode to see your references. To specifically declare a varaible as either an DAO database, or an ADO database, do this: dim dbs as DAO.database dim dbs as ADODB.database...
  7. P

    sorting

    Yes, it's possible. One way to do this is to update the underlying recordsource sql for the continuous form - change the ORDER BY clause to include the field you want to sort on. Then requery the continuous form. Hope this helps, Peter De Baets Peter's Software - MS Access Tools for...
  8. P

    How to tell if other users logged in to DB

    Here are some links that might help: Who's logged in: http://www.mvps.org/access/general/gen0034.htm LDB Viewer: http://www.mvps.org/access/modules/mdl0055.htm Hope this helps, Peter De Baets Peter's Software - MS Access Tools for Developers http://www.peterssoftware.com
  9. P

    Changing back color of a command button

    Colored Button Examples - http://www.peterssoftware.com/clrbtn.htm Hope this helps, Peter De Baets Peter's Software - MS Access Tools for Developers http://www.peterssoftware.com
  10. P

    Yet another Question

    1. In the AfterUpdate event of the check box, you need to examine the checkbox value and set the enabled property of your control accordingly. This should also occur in your form OnCurrent event procedure. 2. Use the code described above in your form OnCurrent event procedure. 3. 0. It's...
  11. P

    I am still getting a too few parameter error

    A source string is required in the OpenRecordset method. Try this: Set rst = qdf.OpenRecordset("qryCreateForm") Hope this helps, Peter De Baets Peter's Software - MS Access Tools for Developers http://www.peterssoftware.com
  12. P

    Opening Forms in a Window

    Try setting autoresize = yes, autocenter = yes, then put a Docmd.Restore in your form OnActivate event procedure. Hope this helps, Peter De Baets Peter's Software - MS Access Tools for Developers http://www.peterssoftware.com
  13. P

    Is Option Explicit needed?

    YES! Don't code without it. Option Explicit makes sure that any variable that you use must be defined (ex.: with a "dim" statement). If you don't explicitly declare your variables, you may mis-type the name of one somewhere in your code, it will compile just fine, but you will get unexpected...
  14. P

    Form

    Try this from your command button event procedure: DoCmd.OpenForm "MyMemoForm",,,"MyMemoFormID = " & me!MyStudentID Hope this helps, Peter De Baets Peter's Software - MS Access Tools for Developers http://www.peterssoftware.com
  15. P

    Detect Screen Res?

    Here it is: http://www.peterssoftware.com/c_scrres.htm Hope this helps, Peter De Baets Peter's Software - MS Access Tools for Developers http://www.peterssoftware.com
  16. P

    Newbie - Passing info between forms

    >Several forms later, I need the users name >again. I assigned it to a string >called "username" but once I close that >first form it seems to lose it? Create a new module. Put the variable definition in the module declarations section: Ex.: Dim gstrUserName as string Use this module...
  17. P

    Add up field values in a Loop

    Try this: dim sngPct as single sngPct = Dsum("fldPct","MyFormRecordSourcName","<criteria, if needed>") Hope this gets you started Peter De Baets Peter's Software - MS Access Tools for Developers http://www.peterssoftware.com
  18. P

    "overflow" in graph.

    If Field1 is 0, you'll get an overflow. You may need special coding to account for this situation. Ex.: IIF(Field1=0,<do this>,<else do this> ) Hope this helps, Peter De Baets Peter's Software - MS Access Tools for Developers http://www.peterssoftware.com
  19. P

    using listbox to reorder records

    Well, you'll need another field to keep track of your record order, and as a record is re-ordered, that field has to change to a value that is between the record above and below it. It's tricky. We've developed a tool that handles this problem and allows listbox re-sorting via drag and drop...
  20. P

    Refreshing Forms

    Are the top and left values too small for you to detect? There is not much difference between a top value of 1, and a top value of 6. You may want to try some larger values to see if the code is indeed working. Hope this helps, Peter De Baets Peter's Software - MS Access Tools for Developers...
Back
Top Bottom