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

    Broken link between MS Access and SQL Server

    I have an Access db with linked tables from SQL server. There is password security on the SQL db. Everytime the Access db is closed the link to the SQL db is broken. Upon reopening Access I receive the message "ODBC--connection to 'SQL Server W01' failed." Is there a way to get around this issue...
  2. Chew407

    Prevent duplicates based on 2 fields

    I am trying to edit some code to prevent duplicate entries in a database based on two fields instead of just one. I would like to check the Fuel Usage table for records that match both the invoice number and date purchased. Any ideas on how to add the date purchased as criteria for duplicates in...
  3. Chew407

    Error on duplicate prevention code

    I am using the following code to check if the invoice being entered already exists within the db. I get the "compile error: User-defined type not defined" What is the solution to this eorror? Thanks in advance for your help! :) Dim SID As String Dim stLinkCriteria As String Dim rsc As...
  4. Chew407

    How do I email a report as pdf, snapshot, or xml

    I need a report to be automatically emailed after it is generated by a report generator. I'd like a command button that, when clicked opens a Microsoft Outlook email window with the report as an attachment. I have searched the FAQs for an answer but only found a solution for COBOL. Anyone have a...
  5. Chew407

    Display current time

    Hello everyone. I tried searching the forum for this but had some trouble finding anything. Is it possible to display the current time, active to the second (you can see the seconds move)? Any help you can provide would be much appreciated. Thank you. Chew
  6. Chew407

    How to open report in front (in focus)

    Hello everyone. I have a report that when opened, appears behind three forms. These forms must then be closed to get to the report to review and then print. However, the totals are then lost and "#Error#" shows up on the report. I do not want to simply change the modal property on these forms. I...
  7. Chew407

    Run-time Error 3307...

    I have taken over someone's db and I'm trying to get a certain report to generate. Everytime I click on the print button I get the run-time error 3307: The number of colums in the two selected tables or queries of a union query do not match. Is this one of those error messages that don't explain...
  8. Chew407

    Limit to subreports on a report?

    I am trying to add four different subreports to a single report but only the first two subreports show up when I preview it. I need the ability to break out totals. I have a grand total and need to show the totals of the four different categories within that grand total. Is it possible to have...
  9. Chew407

    AO Index Error Msg??? What causes this?

    Upon opening my database the following error message pops up: "AO Index is not an index in this table." What causes this error and what does it mean?
  10. Chew407

    Exit Access then Log Off User

    Is it possible to write vbscript to exit the Access app. then log off the user? I have had issues with some users forgetting to log off at the end of their shift and the laptops then becoming locked. Among other reasons, I need the users to log off so the computer doesn't become locked when the...
  11. Chew407

    Exit Access and Automatically Log Off User

    I have had an issue with users forgetting to log off on their laptops when their shift is over causing the computer to become locked. A password is then needed to unlock it. This prevents the next person on shift from using the laptop. Is it possible to automatically log off a user after exiting...
  12. Chew407

    Microsoft Jet database engine message

    I have been trying to figure out the cause of this message I have started getting when I try to run some code that prints reports. The message: "The Microsoft Jet database engine stopped the process because you and another user are attempting to change the same data at the same time." This...
  13. Chew407

    Refer to second column in listbox

    Good morning, I have a listbox on a form that when double clicked, puts the value of the bound column of that particular record into a textbox. What I want to know is how, or is it even possible to put the value of the second column into another textbox? For example... Me.txtName.Value =...
  14. Chew407

    Assign value to variable in report

    Is it possible to assign a value to a variable in a report upon opening a report? My problem is that some numbers are being double counted because within the SQL i'm using they exist twice in a related table. I want to take the single number and make calculations with it. Anyone understand what...
  15. Chew407

    Best way to manage multiple db's?

    I have a database that is currently being used on 3 different PCs on a network. I put shortcuts to the db on all 3 for easy access to the file which exists on the network. Soon the db is going to be sent out into the field on 3 lap tops. I am wondering what is the best way to reconcile all the...
  16. Chew407

    SQL that excludes unwanted values???

    I have a report that draws data from two separate tables which are linked on the claim number. What's happening is that in the tblRecovered there is often more than one of the same claim number. So it appears in the report as many times as it appears in the table. However, I only want the amount...
  17. Chew407

    Omit duplicate values in calculation

    I have a report which totals dollar amounts from claim numbers. I don't want dollar values which come from the same claim number included in the total. I know how to set the hide duplicates property but the number is still included in the total. How do I omit these values?
  18. Chew407

    Set print margins in vb

    The database I am working with outputs only one type of report. I would like to have the margins set so that the user is not required to make any changes to the report before printing (in some cases it may not be previewed - I may use acViewNormal). I am sure there is a way of doing this but I...
  19. Chew407

    DoCmd.RunSQL returns error 2342

    I am trying to run an SQL statement from vb but keep getting the error 2342 - A RunSQL action requires an argument consisting of an SQL statement. I stored the SQL in a variable and tried using DoCmd.RunSQL. The code... Dim mySQL As String mySQL = "Select [LKP_tblRouteCodes].[Route Number]"...
  20. Chew407

    Form won't show existing records

    I have a form with combo and text boxes which submits data into my table fine. The problem is that after closing and reopening the form I can't go to those records using the navigator buttons. On every open the form shows that there are no records. I am sure I am missing something simple here...

Part and Inventory Search

Back
Top