Search results

  1. B

    Can We save Excel WOrkbook Report also as PDFReport using vba

    [/code] Set Wkb1 = xlApp.Workbooks.Open(CurrentProject.Path & "\Book1.xlsx") Wkb1.Save // To save the Excel workbook after updating and writing contents. [/code] I use the above vba code snippet to save contents in an excel workbook and save it in my Current Folder. Is there a way to save...
  2. B

    Report background and foreground color change using VBA

    Could you please tell me how to change background color of MSAccess Reports using VBA? How can I do border coloring. What are the vba codes for all color options like light green, light blue etc. How to change the font type to bold etc using vba I did some changes to text box coloring in...
  3. B

    How to delete an Excel workbook using MsAccess VBA

    If a File exists in CurrentProject.Path & "\Book1.xlsx" , I want to delete it and create a new file . How can I do it using MsAccess vba . Please help ! Also how to create a new Workbook Book1.xlsx with only one WorkSheet called Sheet1 Thanks
  4. B

    Copy After works only for the first time and works again after reopening the Access D

    The below code works fine only for the first time and when I try to rerun, it is not copying the sheets from source to destination. If I close the MsAccess DB and then reopen and execute it works again. Looks like some initialization problem. Can some one help me Dim x, i As Integer x = 1...
  5. B

    CopyAccess data into excel template

    How to open a pre filled excel template in read and write mode from msaccess vba and insert data from msaccess tables into specific columns in excel. Rename the tabs in excel sheet based on a specific column in the access data. Each row in the table will go to a seperate tab in excel. Save the...
  6. B

    How to get 0 from a query when no data is found for a criteria

    Hi, I am trying to run the below query. It fetches records when the select criteria is satisfied, however when no records are matched, I would like the query to display 0 .Please help! select distinct(cars) from tbl1,tbl2 where tbl1.col1 =tbl2.col2 and tbl2.col2 is not null and tbl1.col3 not in...
  7. B

    Msaccess query to update day part to 01

    Hi, I have a date/time column in msaccess 2007 table and it has values in mm/dd/yyyy format. I want to keep the mm and yyyy values as it is and only update the dd value to 01. Is there an easy update query to get it done. I am tring to run a query like this Update Table1 Set Day(ColumnName)...
  8. B

    Can I change Month(Now) value only within MsAccess2007

    Can I change Month(Now) in Msaccess to point to someother month without changing the system date in the taskbar date/time settings of my computer. In otherwords,is there a way to change the date/time settings to affect only MsAccess DB without affecting other documents. I am using the below...
  9. B

    To select maximum 13 dates from a table

    How to select the rows based on last 13 dates from a table. Suppose today is March 15,2012 and if the table has data between March 2012 to Jan 2000,my query should pick up data between March 2012 to March 2011. (13 months) Similarly, if table has data from Feb 2012 to Jan 2000 and the...
  10. B

    How to display subreports page header in main report

    I have 5 subreports subreport1 to subreport5 in the main report's report header section. How to display page header of subreport3 in the main report. Please help ! thanks
  11. B

    Display table data in a report

    I have a table with one row and 5 columns. How to display column1 value in the text box of report 1 on opening the report1.
  12. B

    Form data in a report

    User enters data in a form (Form1) ,textBox1 and clicks save button and closes the form. The user then opens Report1,while opening the report, the report should show the form's text box content in the reports textbox. Is that possible.
  13. B

    Conditional formatting of row based on column value in Report

    In MsAccess 2007,I want each row color to change based on a column value in the report. For example: Select Name,Age,Salary from table 1 -creates 3 rows. Name Age Salary A 15 1000 B 25 2000 C 35 3000 if Salary column is less than...
  14. B

    DUAL Table in Msaccess for adding rows to a query result using Union

    How to add my own rows to a query in MsAccess ? I would like to do something like this: Select Name from Table 1 where age > 75 Union Select "Joe" from Dual; Expected Result: If Joe is not found in Table 1 ,then it would be added to the result of the query. How can I do it in MsAccess as...
  15. B

    How to open a report in Pivot chart view by default

    I like to open a report as a pivot chart from my query. How to open a report by making the default view of report as pivot chart?. I am able to manually create a pivot chart by clicking pivot chart view from the sql view in a report. Then I pull in the required columns to the x axis and y axis...
  16. B

    Can we show two column names in X axis barchart

    Select Year,Type,Count(*) from Table Group by Year,Type ; I am running the above query to create a bargraph: Result of my query: Year Type Count ---- ----- ------ OCt-10 Type1 5 Apr-11 Type 4 4 Expected graph: Y axis Counts X axis Year and then Type together Two bars in total ...
  17. B

    Piechart-Legend-Zero truncation

    My legend in the piechart has values like 004,008 etc but while the report is created,the legend has the preceding 0's truncated and 004 is shown as 4 and 008 is shown as 8. Is there a way to fix that and avoid removal of preceding zeros in the legend. Thanks for the help !
  18. B

    How to increase Report header size

    I am creating barcharts in the report header section but i think there is some size restiction and I am not able to add more than 3 graphs in the report header section. I have to add 65 graphs. Is there any way to do that . Please help and let me know how !!!
  19. B

    Barchart issue in report and works in form

    Report creates two bargraphs with two bars instead of 1 bargraph with two bars. The same query works fine in form and only one bargraph is created with two bars as expected. Am i missing something. A simple query creates this barchart.
  20. B

    Graph1.SeriesCollection fails in report and works in form

    I recieve this error in a report Runtime error '438': Object doesn't support this property or method Graph1.SeriesCollection(1).Points(j).Interior.Colo r = RGB(128, 100, 162) However,it works in form but causing error in report in Private Sub Report_Load().Could you please help !
Top Bottom