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 bkrike 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: *

  • Users: Doraemon
  • Content: Threads
  • Order by date
  1. Doraemon

    Problem for expanding height of merged cells to show all data

    I have a program which exports data from Access to Excel through VBA. But I find the following problem for the Excel file. I have a merged cell called "Remarks", in which its value is very long that it have many rows in the cell. But whenever I open the Excel file, I find only one row...
  2. Doraemon

    Can Access Data be exported to Notepad?

    I would like to export data to notepad, and wonder if it is possible. If possible, then how can I do it? Thanks a lot in advance.
  3. Doraemon

    Problems encountered when using "HorizontalAlignment"

    I am trying to export data to an Excel file, which has a title "Application List" placed across cell A1 to cell E1. I want the title to be align in the center rather than in the left. However, error is found in the indicated line, saying: "Unable to set the HorizontalAlignment...
  4. Doraemon

    How to add double quote (i.e. ") in a string

    I would like to ask is it possible to add double quote in a string. Since when assigning value to a string variable, we have to use double quote to quote the text, so I wonder a double quote can be included in the text, so that double quote can be displayed. Thank for your help in advance.
  5. Doraemon

    TransferSpreadsheet - can starting cell be specified?

    I am trying to export data from a query to an excel file. The following codes work fine. But, I would like to ask is it possible for the system to start writing data to cell A13 instead of A1? Private Sub cmd_export2_Click() DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9...
  6. Doraemon

    How to close Excel form using codes in Access?

    I would like to export data from Access to Excel, with some formatting done in Excel. When I run the following codes, two errors are found, in which I don't know how to correct them. Private Sub cmd_export_Click() Dim strFile As String Dim xlobj As Object, strExcelFile As String strExcelFile =...
  7. Doraemon

    How to write codes for merging cells (& wrap text) in Excel?

    As I am trying to open an Excel for reporting from the Access database, I would like to set the format Excel using VBA. I would like to know specifically what is the coding for mering cells(e.g. D3, D4, D5) into one and then check the "wrap text" property for it. Thank you for help...
  8. Doraemon

    Text field (255 char) not large enough! Any ways to get it around?

    I have a textbox named "Remarks" in the form which is bounded to the Text field "Remarks" in a table. My problem is: Text field can only store 255 characters. But the value input in "Remarks" field will sometimes exceed that length. I would like to ask what can I...
  9. Doraemon

    How to remove extract space in front of each value in a column?

    I have two columns: First Name & Last Name In the column, Last Name, each value in it has an extra space in front. What I would like to do is to remove the extra space for all values in that column. Originally the column is: Last Name Tai Man Cecila Ka Man Tin Yan Choi Fan, Mavis What I...
  10. Doraemon

    How to the close form action?

    I have designed a form in which when the user clicks the "Close" button in the top right hand corner, a msgbox will popped up. If user clicks "Cancel" in the msgbox, the form will NOT be closed. As shown below, I have tried: Me.Undo However, it doesn't work. Private Sub...
  11. Doraemon

    Can each part of a value in a field be extracted into an array?

    I have a field named "approver", which is a textbox for storing names of approvers. Each name will be in a new line in the textbox by pressing "Enter" key. I would like to ask is it possible to extract each name back by writing codes? Follwoing is part of my codes: Dim...
  12. Doraemon

    How to write codes to close a particular form?

    I have opened a form (say Form B) from the main form (say Form A). I have writted in Form B: Private Sub cmd_select_Click() ... ...set values to fields in Form A... ... DoCmd.Close End Sub However, when the "Select" button in Form B is clicked, Form A is closed instead of Form B...
  13. Doraemon

    Can MsgBox automated by system be avoided?

    I have created a "Delete" button, in which when clicked, will delete all the records in a specified table. However, a message box which is popped up by the system will result for the confirmation of deletion. I would like to ask is there any method for avoid the message box, so that...
  14. Doraemon

    Problems encountered when changing RecordSource

    I would like to ask if anyone know the correct way for 1.changing the RecordSource in a subform 2.Refresh the subform to show the corresponding data I have 3 subforms in a form, Add_Company_Record_Form (Form) Add_Company subform (subform - add company details) Add_Department subform...
  15. Doraemon

    How to declare global variables?

    First of all, thanks for your help in advance. I am a new user of VBA in Access, so I am not sure how to declare global variables in VBA in Access. More specifically, I have created many "private Sub_xxx" for all forms in Access. But I would like those forms to be able to fetch and...
  16. Doraemon

    Determine which command button is clicked?

    I have 3 textboxs with a command button besides each of them on a "add_order_f" form in which when clicked will open the form "search_user_f". After the user has chosen a particular record in the "Search_user_f", the user_code of that record will be extracted into...

Part and Inventory Search

Back
Top