Recent content by paul young

  1. P

    Duplicate a booking record with a number of frequency

    :confused: Hi! With help, I created a coding to duplicate a booking record. Now I need to duplicate a booking record by a number of frequency. In other words, if I want to duplicate a booking by 52 weeks, it would do so automatically with the correct future dates installed. This saves...
  2. P

    Duplicate a form and subform using an autonumber

    Duplicate form and subform Wayne Thanks for your reply. I did what you advised and the same message appeared. When I debugged it, the following line was highlighted: !BookingID = Me.BookingID which suggested that the problem lies on that line before it even gets to the .AddNew / .Bookmark...
  3. P

    Duplicate a form and subform using an autonumber

    I am trying to duplicate a form and subform. Each record in the form is identiefied by a BookingID which is an autonumber. When I run the following duplicate command, a message appears saying 'You tried to assign the Null value to a variable that is not a Variant data type.' It is a Runtime...
  4. P

    Run-time error '13' Type mismatch

    Can you help to finish it off / run the code? Click on the Duplicate button on the Booking form. Thanks. Paul
  5. P

    Run-time error '13' Type mismatch

    Do you mean attach the code to a macro, instead of attaching to a 'On Click' or [Event Procedure] of a command button? The code would be treated as a standalone, rather attached to a form? Paul
  6. P

    Run-time error '13' Type mismatch

    Duplicate record I debugged it and an error message appeared for the first line, Public Function DuplicateRecord..... Compile error: Member already exists in an object module from which this object module derives Paul :confused:
  7. P

    Run-time error '13' Type mismatch

    Error - explanation I am creating a Function Booking database with a form showing function details such as venue, date, menu selected. Each booking record (BookingID) is an Autonumber field, purely to keep each record unique. A function can be repeated on a weekly basis. So without having to...
  8. P

    Run-time error '13' Type mismatch

    As I said I am no expert on coding. I found this duplicate sample db on the internet and changed the fields, etc to accomodate with the fields of my database. It worked on 97 version but I hit problems in 2000 version. Using the simple duplicate wizard does not provide the solution I am...
  9. P

    Run-time error '13' Type mismatch

    Error The BookingID is an autonumber field. The database in question is a function booking. For repeated bookings, I created a duplicate command to copy a record and create a new one with a new next autonumber. Some fields are text or date, so maybe the string coding procedure would not work...
  10. P

    Run-time error '13' Type mismatch

    Run-time error '13' Thanks for your reply. As I am no expert in coding but I amended the line to: MsgBox Err.Number & "-" & Err.Description A new message appeared: -2147352567-You can't assign a value to this object This suggests that a field data type is not a number type. Correct? Paul :(
  11. P

    Run-time error '13' Type mismatch

    :confused: I created a Duplicate command/macro on a form and, when it is clicked on, a message appeared 'Run-time error '13' Type mismatch'. Debugging the command showed the problem was this code line: MsgBox Err.Number, Err.Description in the bDuplicateCurrentRecord section (shown below)...
  12. P

    the autonumber reset solution

    Deleted and compacted but still old data appeared. After created a database governed by an autonumber field, I entered a number of records. Each record had a subform governed by a field (in this case, area name). I entered figures into the subform to test it. Then I deleted the records and...
  13. P

    Expression to state current balance after each transaction

    :confused: I am trying to create a suitable expression, either on the form itself or in the underlying query, that calculate the balance after each transaction, like a bank statement. What is the best way to do it? Paul
  14. P

    Expression in a form

    :confused: I am creating a simple database for a small community bank. I created a current account with a subform that includes all transactions (deposits and withdrawals). I wanted to put an expression on the current account showing the balance after each transaction is made. I used the text...
  15. P

    make a duplicate of a record

    Create duplicate records in a form with subform :confused: I wanted to duplicate a record without having to do the paste command. I looked at this thread and tried to re-create the SQL statement to get the results I wanted. But I could't. I am a novice on SQL. I wonder if anyone out there...
Back
Top Bottom