Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. tristap

    Clone Record With Primary Key Indexed as No Duplicates

    Whilst I thank you for the post, not sure how this will help. I am not trying to replicate a database just a record. Any other suggestions? Can anyone else help?
  2. tristap

    Printing form not printing what is displayed on screen.

    Is the unbound field from the form on the report as well? As if you are printing the report without the field it will be blank. If you add an unbound field onto the report as well and as the Control Source add this [Forms]![YourFormName]![YourFormFieldName] then as long as your form is open...
  3. tristap

    Clone Record With Primary Key Indexed as No Duplicates

    Am trying to clone an existing record in a MS Access database by a the click of a button on a form. Currently experiencing two issues with my code. ISSUE 1: The below code has an issue and advises that it cannot clone as it will cause a duplicate ID in the table where the Reference field is a...
  4. tristap

    Extra record in continuous form

    Set the AllowEdits to No will do the trick. If users are only view the data, this should not cause any issues.
  5. tristap

    Convert Multi Line to Single Line

    Added a button on a form to execute your code supplied and the below works: Private Sub cmdReplaceText_Click() Call RemoveCrLf("zz", "txtDescription") End Sub Sub RemoveCrLf(TableName, FieldName) Dim mySQL As String mySQL = "UPDATE [" & TableName & "] SET [" & TableName & "].[" & FieldName...
  6. tristap

    Convert Multi Line to Single Line

    Can you please explain the above code and also why I would need to pass the table and field name to the procedure. Would I not just include it in the sql statement?
  7. tristap

    Convert Multi Line to Single Line

    Can anyone advise if there is a way to import an MS Access table which has a multi line comment field into a single lined field ie. get rid of the carriage returns on import?
  8. tristap

    Create listbox values based on array

    PH, Thanks, the code supplied is much simpler and does exactly what I wanted.
  9. tristap

    Create listbox values based on array

    I am trying to create a listbox on a form that contains a list of years based on values I have automated in an array. The first year in the list will always be 2005 and then I want to add each year after that until the current year ie. 2006. So the list should display 2005 & 2006 and next year...
  10. tristap

    Auto Import Table with Primary Key Field

    Remou, Used code provided and this has fixed my issue. Thank you so much for the assist!
  11. tristap

    Auto Import Table with Primary Key Field

    I have set up an automatic import with specification for a fixed width test file using the TransferText method, however I am having problems with a primary key field. When I manually import, Access assigns a Primary Key field giving each record a unique ID number, however when this process is...
  12. tristap

    Export Table Records One at a time to Text File

    Success! It now works! To: mp9, RoyVidar & JerryKlms All 3 of you have contributed to the resolution of my issue - many many thanks! It is very much appreciated and has saved me tones of heartache. I have given you all a star! Kindest Regards Tristap
  13. tristap

    Export Table Records One at a time to Text File

    Took out "On Error Resume Next" and set declarations as suggested with dao but getting the below error message on the "Set RS = db.OpenRecordset(sqlstr, dbOpenDynaset, dbSeeChanges)" line: Run-time error '3061': Too few parameters. Expected 2. Please advise!
  14. tristap

    Export Table Records One at a time to Text File

    Checked in Tools-->References and no missing word but Microsoft Runtime was not checked, I have now checked this box and I get no error message now, however when I run it I just get the hourglass ie. seems to be endlessly looping. There is only 184 records in the table so should not take an...
  15. tristap

    Export Table Records One at a time to Text File

    It falls over at at: Dim fs As Scripting.FileSystemObject Error message is displayed: Compile Error: User-Defined type not defined
  16. tristap

    Export Table Records One at a time to Text File

    Need some help please!.... Previous developer wrote the below code which now does not work as we have upgraded to XP and now have MS Access 2003. Basically the routine outputs one record at a time to a text file with fixed field lengths, while also formatting the table fields. I also have to...

Part and Inventory Search

Back
Top