Search results

  1. J

    Default Date in Textbox

    Hello, I would like to add two unbound text boxes on a form which indicate the 1st day of the current year (txtFrom) and the current date (txtTo). Thank you for your help.
  2. J

    vba to print Word document double side

    Hello, I have a vba that export data from a form to a MS Word template. It works great but I would like to add a final code that allows wither to open the file in case users need to modify it, or print is double side. I cannot specify the printer type as the database will be used my multiple...
  3. J

    Extract part of a string

    Hello, I have a table with a filed named CustomerFileNo which is made of 10 digits plus one or two characters which identify the customer. ex: 0000000000A 0000000000BB I was trying to create a new field that only shows any digit or character after the 10th digit but can't get it working: ex...
  4. J

    Export data in Work to different folders

    Hello, I have a form with a cmd button that exports data to MS Word template. Presently the word file is saved via code too just one folder (C:\MyTemplate). I would now like to change my code to save the word file into different folders depending on the selection in a textbox (txtfolder)...
  5. J

    Between/And

    Hello, I have created a form with two unbound textboxes. txtDOB in which i type a date of birth (mm/dd/yyyy age format) txtRetire in which I would like to add a text via code, depending on the age range entered in txtDOB. Examples: If me.txtdob between 01/01/1950 and 12/31/1950 then...
  6. J

    PrintOut not reading the default printer

    Hello, I have a form with a cmd button which refers to a macro to quick print the active form. Suddenly, the print function does not recognize the default printer (PRT1) and all prints are sent to a different printer (PTR2) which is not the default. Both printers are shared as part of a...
  7. J

    Add data to SubFrom from Main Form

    Hello, I am creating a small db to manage member of a sports club. I have a two main tables: Members and YearlyFees Memebers is to store general info. Yearlyfees is to add the yearly fee each member pays. The unique code for both tables is ID. I first add a new memeber, than save the record to...
  8. J

    Add Date Function

    I have created a form on which I have two textboxes with a Date format (mm/dd/yyyy) Text1 will be used to store a specific date Text2 should automatically add 1 month to the previous date I have used the following code to the Default Value property of Text2 but after entering the date in...
  9. J

    Copy multiple data from Cbobox to Textbox

    Hello, I have a form with a combo and a textbox. The combo has its records source to a table named documents. The text box is unbound. I was wondering if if would be possible to copy different records (not at the same time) from the combo box and place them in new lines in the text box...
  10. J

    Print Report

    Hello, I have created a main report for my db which includes a sub report. On a form, I have a cmdbutton which converts the report into a pdf file and attaches it to the email. Depending from the value selected in a combobox, the report may or not include the sub report. If selection in...
  11. J

    If/Else problem

    Hello, I am having problems with the execution of a if/then statement and an exit sub procedure. Just cannot figure where is the mistake. I appreciate your help. My project is to create a db to manage refunds which clients are due to my company. Once in the main form, users will select the...
  12. J

    db design

    Hello, I was thinking to design a simple db to manage the daily prices of a small apartment which I rent. Because this apartment has three room (Room A, Rooom B and Room C) I would like to ask your opinion on what is the best wasy to design this db.ù My idea was to create some sort of calendar...
  13. J

    Refresh Form

    Hello, I have a form with several controls like textboxes and combos. I would like to refresh the form when data is changed or updated in any control. I have placed the Me.requery on the after update event of the form but it seems it is not working. Is there any other solution, you can...
  14. J

    Run Time error 13 Type mismatch

    Hello, back for some help. Almost finished by project but coming up with a type mismatch error 13 which I just cannot solve. The code behind my cmdbutton exports date from my form to a MS Word Template. Data is stored in textboxes and combo boxes. When I run the code I get the error message at...
  15. J

    Checking if controls are emply

    Hello, I would appreciate your help with VBA code that checks if any of the multiple controls on my form are empty. Controls are combo and textboxes. My form has about 5 combos and 20 textboxes. If any of these controls have no data, then I would like to add a msg box saying, please complete...
  16. J

    Unbound TextBox value

    Hello, I have a form on which I have added an unbound textbox (txtResult) which I would like to return a given value depending if data is entered or not in another textbox (txt3). Currently, txtResult shows a value between txt1 and txt2 (which is located in a subform. txtResult has the...
  17. J

    Else/If statement

    Hello, I am having a problem with an IF/ELSE statement, although used many other times. I have a cmd button on a form which executes or ends a certain code, depending on the value in txtbox1. Thank you for your help If Me.txt1 = "partial" Then MsgBox "Sorry, you cannot perform this action is...
  18. J

    Attached file to Email with same name of texbox

    Hello, I have a form which exports data to a Word file and saves it with the value indicated in the textbox (FILENO). I then have a code that opens Outlook but I am having problem in attaching the correct file. The code (wrong) that I have come up with, will only attached a file with a...
  19. J

    Sending emails using control as records source

    Hello, I have f form used to export data to a MS Word template which is then attached to a new Outlookl session. Since the recipient email address can change, I would like to choose the email address directly from a combo available on my form , which lists all the recipients. The part of the...
  20. J

    Export to Word and keep currency format

    Hello, back for some help. I am having problem when exporting data to Word. On my form ( records source is Table1), I have a textbox (Amounte), with format Euro and decimals as Auto. When I type or open the form, the value in textbox Amounte is displayed correctly (ex. €100.50). When I export...
Back
Top Bottom