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 TouchToneTommy 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: jpl458
  • Content: Threads
  • Order by date
  1. jpl458

    Sort a string and remove duplicate entries

    Writing a data conversion app that concatenates groups of two digit state codes and is written in ECXEL vba. I redd the data into an array and output what I need to an output array Rout, and when done write the result to a worksheet. There is one column that I would like to sort immediately...
  2. jpl458

    Sort comma separated values in string

    Writing a data conversion app that concatenates groups of two digit state codes and is written in ECXEL vba. I redd the data into an array and output what I need to an output array Rout, and when done write the result to a worksheet. There is one column that I would like to sort immediately...
  3. jpl458

    Putting result of formula in another cell

    I want to compare two cells in an excel spreadsheet and if they are the same I want to concatenate two cells and put them in the cell different from the formula location. Example =IF((B2 = B3),R3=CONCATENATE(G2,G3),"") I tells me false. Windows 7 Office 10 Thanks in advance jpl
  4. jpl458

    Problem with Like operator

    Have a column in a table that contains various codes but I only want to look at the following codes in that column: GP4_1/2H GP4_1HR GP4_1H_F GP_IMP-A GP_IMP-J My Like clause is the following: Like "GP4_*" Or Like "GP_*" I get back all the right things but also get back: GR10 XR10 FRMONE FNYI...
  5. jpl458

    Problem constraining query on alias

    I need to constrain a query based on the alias that I created for a column. I have one that works and another that doesn't. The following works: RDate: [PUB_PSHISTOR]![PSH-Date] is in the line of the QBE Grid #7/17/2014# is in the criteria line for the above and it works fine. neither of the...
  6. jpl458

    MSExchanges not rejecting bad email addresses

    I have written a specialized email application In ACCESS 2010 for my department. At first I couldn't send email outside our domain so the server folks turned on relay and gave me a static IP address. However, now the mail server does not reject bad email addresses unless I leave off everything...
  7. jpl458

    Updating a general time field in table

    I have an older program that uses the following: DoCmd.RunSQL "UPDATE Last_Update_Date SET Last_Update_Date.LastUpdate = Now()" It works perfectly. But the old app is MDB I have a new app That is accdb that uses the following: DoCmd.RunSQL "UPDATE lastEupdateTbl SET lastEupdateTbl.LastUpdate =...
  8. jpl458

    ON/Off column in table results not consistent

    I have a table The contains an Yess/No column that is set false in the default value. This table gets it's entries from Program A with the following code: DoCmd.SetWarnings False SentSql = "INSERT INTO SentEmailTbl(Account_Number, Event, DateSent, Redempt_Value) " & _ "Values('" &...
  9. jpl458

    Can't stop one page report from using two pages on printer

    Have a one page ACCESS report that I am sending to a number of folks via email. However, I cant get it to stop using two pieces of paper instead of one when it prints. The report and a blank sheet of paper I have resized the width of the report in design mode and set the width property, but...
  10. jpl458

    Problem with getting Max of table values

    Have the following code: Dim EmKeySql As String EmKeySql = "SELECT Max(SentEmailTbl.EmKey) AS MaxOfEmKey " & _ "FROM SentEmailTbl" Dim EMailcon As ADODB.Connection Set EMailcon = CurrentProject.Connection Dim EMailRs As New ADODB.Recordset...
  11. jpl458

    Email multiple attachments in vba

    Using the following code that I got from Andrzejek. I have made some small changes(this is the original), and it works great. Now I have the need to send multiple attachments and I can't figure out how to do that. I think the change is in this bit of code. ACCESS 10, Windows 7 Public Sub...
  12. jpl458

    Problem date and INSERT INTO

    Have the following code where I need to insert data plus the Date and Time it's inserted Dim SentSql as String SentSql = "INSERT INTO SentEmailTbl(Account_Number, Event, DateSent) Values('" & GBL_Master_Id & "', '" & GBL_Event & "', NOW())" (This example is right from the web) In the immediate...
  13. jpl458

    "The database has been placed ina state by user 'Admin"

    Was making a lot of changes when this happened. Tried to open the database (Access) and got the following: "The database has been placed in a state by user 'Admin' on machine 'My Machine' that prevents it from being opened or locked" I was the only user. Hope there is a way out of this, lots...
  14. jpl458

    Can't add start stop character to Barcode 39 font

    Need to add a barcode serial number to a report that will be used as a coupon. The serial number is kept in GBL_SerNo. CouponSerNo is a textbox on the report that is set to barcode 39 font. The following code will print the bar code, but it will not scan. I found that I need to add an asterisk...
  15. jpl458

    Record Counts of ADO recordset

    Trying to get the number of records in an ADO recordset, using the following code: If mailRs.Supports(adApproxPosition) = True Then Me.EmCount.Value = mailRs.RecordCount End If It skips the second line of code indicating that my RS does not support the cursor type. How do you set...
  16. jpl458

    Can't change the size of a form

    In design mode there is nothing to "Grab" on the right side so I can resize a form. I have also tried :DoCmd.MoveSize 1440, .5*1440, 8 * 1440, 5.75 * 1440. But on open the form fill the entire screed. My problem might be in the options which I have tried al sort of combinations. Any help...
  17. jpl458

    Update a report from a form

    Creating an email application that has a form and a report. The form has the email code in an OnClick event of a button. the emails I wand to send out must have a serial number on them, so I created a report with a textbox named valCouponSerno. In the form is the following code Dim serNo As...
  18. jpl458

    Sending emails out ACCESS

    I have scoured the web and read a number of posts in here, tried sample code but I have questions. Most of what I've read and tried is old (2005 or so, XP etc.). Looked for tutorials but they all seem to require a priori knowledge. We would prefer not to use OUTLOOK. We have a customer list with...
  19. jpl458

    Another Insert Problem

    Got some great help here for an Insert problem. However, When I run the code on some records in the record set I get: Run-time error '3134' Syntax error in INSERT INTO statement I have examined the previous record that gets inserted and compared it to the record that bombs and I see no syntax...
  20. jpl458

    Insertdata into ACCESS table from Recordset

    Want to insert a record from a recordset into and existing empty ACCESS table. The following code is inside some loops, but the code bombs on the docmd.RunSQL addata with this error: Invalid use of '.','!',or (). in query expression BallsRs.Fields(0).Value. Just testing to get the insert...

Part and Inventory Search

Back
Top