Search results

  1. L

    Sorting Zip Codes

    Ask the clip on how to create and sort a query.
  2. L

    Six Weeks Average

    if your table looks like this: name---- start---------------------- end john----- 2/2/2005 12:00:00 PM------ 2/2/2005 6:00:00 PM john------1/2/2005 1:00:00 PM-------1/2/2005 10:00:00 PM and you want this: name---- start-------------------end-------------------hrs-----week john----- 1/2/2005...
  3. L

    DLookup() in a form

    Where are you using DLookup? Can't you use a query instead?
  4. L

    access to a report in a specify register

    Change the recordset of your report on open
  5. L

    Ascii text import

    Something like this, the table is pre-made, with two fields. Sub ReadText() Const ForReading = 1, ForWriting = 2, ForAppending = 3 Const TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0 Dim fs, f, ts, s Dim ctrLine As Integer, CtrDiv As Integer...
  6. L

    variable in a recordset field

    I tried that. My mistake, that was supposed to be the syntax in my original post. I took that after SQL syntax with a variable. Tried this too. Rst("'" & Fieldname & "'") Still Error. What I am trying to do is reuse a procedure with different tables with different field names. I am...
  7. L

    disable a checkbox after update

    IF CX is a checkbox, it can have two values, true or false. If you have two check boxes, why are they named the same way?
  8. L

    variable in a recordset field

    I am trying to reuse a procedure for different tablenames my procedure is like this. _______________ dim rst as dao.recordset set rst = db.openrecordset("table1") rst ("AFieldnameinTable1") = 1 _______________ IF: rst ("AFieldnameinTable1") = 1 I want to replace...
  9. L

    Sort by an expression

    go to the report properties, click on record source, it will ask you if you want to invoke query builder drag all your fields, then create another field that calculates total. sort it desc or asc by the additional calculated field.
  10. L

    working with dbase data in access

    Create an odbc connection, then link the dbase table.
  11. L

    value & oldvalue

    after update, me.form.refresh
  12. L

    form help! not able to add values and want to copy previous values

    Create a query, criteria is = date today minus one day.
  13. L

    Populating combo and listboxes

    Thats it. .
  14. L

    Calculating Holidays

    Create a table of holidays because some holidays change date. Then create a query if those dates are in between your dates, count them. so say if the count is 3 ( 3 dates are holidays) then 17 + 3
  15. L

    Linking forms/tables together?

    make the second for a subform and link them. or check the command button wizard open form, it will ask you what criteria you want.
  16. L

    moving data between subforms?

    Private Sub Command0_Click() 'MsgBox Me!Subform1.Form!ControlName MsgBox Me!Table1subform.Form!ID Dim myID As Integer, SQL1 As String, Sql2 As String myID = Me!Table1subform.Form!ID SQL1 = " INSERT INTO Table2 ( Table2Field1, Table2Field2 ) SELECT Table1.Table1Field1, Table1.Table1Field2...
  17. L

    Edit recordsource in another form

    If your button is on the mainform Subform1 the name of your subform: Me!Subform1.Form.RecordSource
  18. L

    module for recordset?

    Make sure you include the second line here. It doesnt see all the records until it moves itself to the last. Set rst = db.OpenRecordset("Name of your table goes here") rst.movelast If rst.RecordCount > 0 Then
  19. L

    Error 2191

    Header and Detail
  20. L

    Error 2191

    On Format?
Back
Top Bottom