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. jdgreen

    Error With SQL in VBA

    It runs fine SELECT CustData.Email FROM CustBrandsFlat INNER JOIN CustData ON CustBrandsFlat.CustID = CustData.[customercode] WHERE (((CustBrandsFlat.Brand)=[Forms]![frmEmailing]![Combo2])) GROUP BY CustData.Email HAVING (((CustData.Email)<>IsNull([Email]))); John Green
  2. jdgreen

    Error With SQL in VBA

    I am continually getting an error with some pretty basic code. The error is "error 3061 too few parameters expected 1" which normally means there's a problem with the SQL. The code is below: Private Sub Command11_Click() On Error GoTo Err_Handler Dim strReport As String Dim strMailTo As String...
  3. jdgreen

    Selecting a String from the right of a character

    Using Gentran 5.1 John Green
  4. jdgreen

    Selecting a String from the right of a character

    I have a string, KC1055-SP11#B5-BLK/SMK, that I need to map only the data to the right of the # sign. Unfortunately, the length of the data varies as does the start position within the string. I know there is a way to set it up to look for the character and map the information there, but I'm at...
  5. jdgreen

    Defining a variable for Ranges

    I am working in Excel 2007. I am trying to define and select a range using a variable for the last row. The variable is defined (mouse over shows the right number), but I am getting an "application-defined or object-defined" error. I am new to VBA in Excel and doing anything with ranges and...
  6. jdgreen

    Working with dates

    I have a form that doesn't allow the user to print a label if the data for the label has not been updated/verified in the last two days. It is a simple If/Then statement based on a date/time stamp field. I have been asked to change this to they can't print if it has not been updated each...
  7. jdgreen

    Syntax Error in SQL for Crystal Reports 11/Progress 9.1

    I am getting the following error: 42000:[DataDirect][ODBC PROGRESS driver][PROGRESS]Syntax error (7587) [Database Vendor Code: -20003] whenever I try to run the following command in CRXI: SELECT "abs_mstr1"."abs_shipfrom", "abs_mstr1"."abs_par_id", "abs_mstr1"."abs_shipto"...
  8. jdgreen

    Syntax Error in SQL for Crystal Reports 11/Progress 9.1

    I am getting the following error: 42000:[DataDirect][ODBC PROGRESS driver][PROGRESS]Syntax error (7587) [Database Vendor Code: -20003] whenever I try to run the following command in CRXI: SELECT "abs_mstr1"."abs_shipfrom", "abs_mstr1"."abs_par_id", "abs_mstr1"."abs_shipto"...
  9. jdgreen

    .pst File Updates

    We are running Outlook 2007 on XP Pro computers. I have all of the users setup to archive e-mail in .pst files on the file server (running Server 2003). When users periodically are asked to delete files from their archives (pst files), it seems it takes a random amount of time for the .pst file...
  10. jdgreen

    Extracting Data from A String

    I am using CRXI and have an issue retrieving data from a table. The data in the table is stored in the following format: 2.3454;0;0;0;0 24.35;0;0;0;0 2.32;0;0;0;0 I need to only retrieve the first number from the array. Thanks John Green
  11. jdgreen

    Crystal Reports XI and Progress 10.1B

    I am trying to run a query from Crystal Reports using a max SQL command. All I get is a syntax error. The code is below: SELECT DISTINCTROW Max(comh_corder_version_head.covh_due_date) AS LastOfcovh_due_date, Max(comh_corder_version_head.covh_order_number) AS MaxOfcovh_order_number...
  12. jdgreen

    Using Outlook Forms

    I am setting up a new form in Outlook 2003 and when I go to send it, the e-mail shows up in the inbox blank. When you open the e-mail item, it shows the form. I know there is a way to show in the preview window that it can't be displayed in preview, but must be opened. I just can't figure out...
  13. jdgreen

    Using RecordSelection

    I am trying to create a field on a form that will start with a value entered as a parameter and displayed on the report and add one to each subsequent record (add one to the first, two to the second, etc...). I have started with this formula: VAL ({?Ticket}) + Val (RecordSelection) The formula...
  14. jdgreen

    how to &quot;fix&quot; a message box

    I use a method of only listing one exception. The code runs through and stops at the first exception displaying a message box. I had tried putting them all together with carriage returns, but the users like this method as they don't have to remember as much. John Green
  15. jdgreen

    Code to Check Network Access

    You can try Access security, but depending on your level of knowledge about VBA there are some much better ways of doing it. I use a custom security system that doesn't require the cumbersome Access security. If you do use Access security make sure you set it up to where the shortcut assigns...
  16. jdgreen

    Code to Check Network Access

    Why not just remove the read only access from the network drive or use Access Security to limit who can open it? John Green
  17. jdgreen

    for next question

    What kind of code do you want to run? What I'm reading is you want a message box to come up for each customer? John Green
  18. jdgreen

    Code Crashing at Setting a Report Printer

    Nope, still get the same error. It's a stumper to me because I am using the exact same code on another form in the same database. John Green
  19. jdgreen

    Automate: File / Send To / Mail Recipient

    I forgot to add that you will need to add Outlook's Object Library to your references. John Green
  20. jdgreen

    Automate: File / Send To / Mail Recipient

    I'm guessing that you have a field for the e-mail address? If so you want to use this code on a buttons click event: Private Sub CommandButton_Click() On Error GoTo Err_CommandButton_Click Dim strEmail as String Dim strBody as string Dim objOutlook as Outlook.Application...

Part and Inventory Search

Back
Top