Search results

  1. M

    Query to Excel Sheet with File Save as Box

    I have a query for a database on the shared drive . I want to export this to excel and prompt the user to give the user a file save as box so that he can save it anywhere he wants. Any ideas how this can be acheived?
  2. M

    Export to Excel - Invalid Procedure call

    . Using the transfer spreadsheet method . It was giving that message yesterday but today it disappeared . Today my problem is when I put in the path to a folder on the shared drive it does not export . When I put the database on my hard drive and give the path of C:\Data.xls it works fine. So...
  3. M

    Export to Excel - Invalid Procedure call

    When I try to do an export to excel for a report - it comes back with a message saying Invalid procedure call or arguement . Any ideas on this one ?
  4. M

    Reorganising Database

    This would be for one Emp ID correct ? I am looking for this Name Sick vacation stat Name 1 total sick total vacation total stat Name 2 . . .Name n Grand total Grand Total Grand total sick vacation stat
  5. M

    Reorganising Database

    I have an employee database . It has two main tables. Employee Info and other one Details about Types of Leave Taken,number of hours and date on which it was taken. If I want to sum the total for each employee all the types of leave that was taken over a period of time - month or year - what...
  6. M

    Summing up the rows in a column

    How do I sum up the rows of a column in a report ? My example is here below Sick Days Employee1 Employee2 Employee3 Total of Sick Days
  7. M

    Listbox background

    My listbox displays multiple rows and columns . I want to change the color of the row in which on column says "vacation" . How can I do that ? please help
  8. M

    Dlookup does not work

    Good Point . Did not think of that at all . How can I avoid that trap ?
  9. M

    Dlookup does not work

    Worked . I most certainly had the syntax wrong there. Moses .
  10. M

    Dlookup does not work

    This is exactly what I looked at and it kept erroring on me.
  11. M

    Dlookup does not work

    Private Sub Combo4_BeforeUpdate(Cancel As Integer) Text6.Value= DLookup("[last]", "Table1", "First ='& forms!Table1!combo4'") End Sub Any ideas about this ? mehul
  12. M

    Run-time error '-2147217913 (80040e07)': Data type mismatch in criteria expression.

    Recreated a new form and a new calendar and list and now it works perfect. As a side note can I use a simmilar property like Rowsource or something to insert data in to a table . At the moment I have it using Currentdb.Execute ? Thanks a lot . Really appreciate the help moses
  13. M

    Run-time error '-2147217913 (80040e07)': Data type mismatch in criteria expression.

    Yes I did . Thanks for your reply once again.
  14. M

    Run-time error '-2147217913 (80040e07)': Data type mismatch in criteria expression.

    Private Sub cal1_Click() Me.List18.RowSource = "Select * from Table1" End Sub I put this in there and it shows (Select * from Table1 ) in the list ....lol. I am not sure what I am doing right.
  15. M

    Run-time error '-2147217913 (80040e07)': Data type mismatch in criteria expression.

    I am really not sure how I can do that . Can you please educate me. please and thanks. Mehul
  16. M

    Run-time error '-2147217913 (80040e07)': Data type mismatch in criteria expression.

    . Thanks for your help . I worked with single quotes after I changed the datatype for DateTaken to text from Date and Time. Any ideas how I can keep it at date and time and still have it work. Thanks again.
  17. M

    Run-time error '-2147217913 (80040e07)': Data type mismatch in criteria expression.

    Hi Bob, I am getting the same error. Trying to populate a list box using a query based record set. This is the code I have . Can you please help. Private Sub cal1_Click() On Error GoTo UserForm_Initialize_Err Dim cnn As New ADODB.Connection Dim rst As New ADODB.Recordset Dim calval...
  18. M

    Help with VBA / query design

    Pasting a snippet from my code cnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=C:\new.mdb" rst.Open "SELECT Table1.Name FROM Table1 WHERE DateTaken= '" & cal1.Value & "';", cnn, adOpenStatic rst.MoveFirst cal1.Value is a value to be picked by the user on a...
  19. M

    Preventing duplicates in List Box

    Is there a property in a list box that I can set to make sure it does not populate duplicate entries ? moses
  20. M

    Populate an Unbound TextBox from a Query

    Can I assign a value from a query to a text box without writing VBA code ? please please help. Thanks. Moses
Back
Top Bottom