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

    Pivot Table filters

    Is there a way to filter columns in Pivot table and show up only certain results within each column using VBA? thanks, Dan.
  2. DanKay1

    PivotTable VBA

    Is there a PivotTable function or solution which returns starting location of each pivottable in the worksheet? Thanks, Dan.
  3. DanKay1

    Running Sum VBA Code

    I would like data in Table1 to compile running sum into table2. Is there a running sum query in access? or it has to be done though VBA? Table1: with the following fields Key Commissions Sales Table2: Key RunningSumofCommissions RunningSumofSales Thanks in advance.
  4. DanKay1

    Report - Line Break

    I am trying to create report that will show one field from the database. That field is a memo field and its very long, I would like to break it to the next line at specific places, but I can't break it at specific places because Access Reports doesnt understand \n. Here is a sample field from...
  5. DanKay1

    Need help with RegExp problem

    I need to pick up the company name from each line. I can't write a regex that will pick up the string "MUNICH AMERICAN (CNA)" or "MUNICH AMERICAN" from each line. Basically, it has to pick up a string from the beginning of the line to "Treaty" part and it should ignore Totals since it also has...
  6. DanKay1

    Create Table in Access from SQL Server

    I am trying to query information from the SQL server and when I am running Make Table Query and it creates it on SQL server instead of in Access. Dim myConnection As ADODB.Connection Set myConnection = New ADODB.Connection Dim rstSource As ADODB.Recordset Set rstSource = New...
  7. DanKay1

    Concatenating fields

    Can any please help with concatinating several message fields into the 1 row. from Table1 -> Table2 I have wrote the code but it doesnt work properly. Can you please check my logic or suggest your solution. Thank you. Table 1 Policy Message 01 msg1 msg2 msg3 02 msg1 03 msg1 msg2 Table2...
  8. DanKay1

    convert text to html

    I need to convert textfile to HTML. Example of textfile below: textfile.txt a. Line 1 b. Line 2 HTML Create HTML page with the Name of todays date. And inside color code the lines and remove a. and b. in front of them until EOF. if first char is a. then line should be red. if first char is...
  9. DanKay1

    Passing a variable to the Report

    Is it possible to assign a textbox/label inside report that will get a variable assigned to it. Ex. I am trying to run a function that will calculate results and I want to open Report and show that result. Thank you.
  10. DanKay1

    Populating ListBox from 2 sources

    Is there a way i can populate ListBox with Values from One field in Table1 and at the same time populate One field from Table2?
  11. DanKay1

    How to define variable witin SQL statement

    CurrentDb.OpenRecordset("SELECT CompanyList.CompanyCode, CompanyList.REINSURER FROM CompanyList Where Reinsurer = '" & cmbReinsurerName & "'") cmbReinsurerName = "Loyd's" and it Kicks me out is there a way to define the variable within sql statement so it would give an error. it works for all...
  12. DanKay1

    Many-to-Many relationship issue

    I have Billing Table and CashFlow Table Each billingID might have several CashFlowID and each CashflowID might be assigned to several BillingIDs. I need to create many-to-many relationship. Do I need to create intermediate table or its possible to create this relationship with 2 tables?
  13. DanKay1

    Extract information from MsgBox

    When running a query in Access it brings up this message box "You are about to update 50 records." is it possible to obtain that 50 and assign it to the variable. I am trying to run several queries in function and I want to turn off the warnings and make a report of all queries.
  14. DanKay1

    Check if the field exists?

    I want to insert a field into the table, but before doing it I want to check if it exists. Is it possible to check if the table contains certain field name?
  15. DanKay1

    DateDifference Problem

    DateDifference I need to calculate the difference between two dates and find out how old was the person at particular point of time. I need to find the nearest birthday and cut off point is 6 months. Ex: DOB: 01/01/2000 06/01/2004 Difference is 4 years and 6 months, but nearest birthday...
  16. DanKay1

    Swapping Columns

    Is there a function in VBA to swap information between 2 columns? I am thinking of Creating a New Column for temporary storage purposes. After the data will be swapped erase it. Do you think its the right way to approach it?
  17. DanKay1

    Need help with this query -thx

    RateTable Sex Age Dur1 Dur2 Dur3 Dur4 M 30 .5 .6 .7 .8 F 31 .3 .4 .5 .4 M 28 .4 .5 .6 .7 ClientTable Name Sex Age Duration John M 28 2 I need to figure out how to obtain Rate for John based on Sex, Age, and Duration, which should = .5 Is...
  18. DanKay1

    Last Field Doesn't get updated...

    I wrote the code and it works perfect except it doesn't update the last field in the table. Can you tell me if you see my error. Thank you. Dim LastPolicy As String Dim MAX_KEEP As Double Dim MAX_CEDE As Double Dim SUM As Double Dim MAX_TO_KEEP As Double Dim MAX_TO_CEDE As Double Dim AMOUNT As...
  19. DanKay1

    Running Totals Problem

    I have a table with Names and Amounts, I need to total those amounts based on the names before moving to next name. Have a running total per name. I tried doing it but all i get is the sum for all the names. Can you give me a tip please. Thanks
  20. DanKay1

    Tough VBA problem, that needs tracking

    Table ID Name IssueDate Amount Kept GivenAway 01 John 2002 2000 02 Bryan 2002 3000 01 John 2001 2000 01 John 2003 3000 Guys, I need help with VBA. I need to fill in Kept and GivenAway fields which are initially...

Part and Inventory Search

Back
Top