Recent content by jl39775

  1. J

    Change column name

    Is there a sql statement that will allow me to change the name of a column? Thanks, James
  2. J

    Importing Excel 2002 into Access 2002

    Microsoft has done it again. I been working on importing an Excel 2002 spreadsheet into Access 2002 all day. It was simple with prior versions of Office. If any Access 2002 users or developer recieved the message "External table is not in expected format" when importing a 2002 spreadsheet; and...
  3. J

    create table

    I found my problem table was missing this is how you do it. ("create table testing (test1 text(2))"). this is how not to do it. ("create testing (test1 char(2))"). James
  4. J

    create table

    I am trying to create a table in vba docmd.execute("create testing (test1 char(2))"). It seems the the create statement doesn't work in access 2002. I've used it with oracle. I need a statement that will do this. Please help. James
  5. J

    DoCmd.TransferSpreadsheet ERROR

    I've already try that. The variable does not have a "$" at the end of it. I don't know why the error has it. When i take the last character off it removes "s" form "xls". James
  6. J

    DoCmd.TransferSpreadsheet ERROR

    I'm on Windows 2000 and Access 2002. I forgot to mention that I am getting the file name from a commonDialog box. I used xlsName= "C:\Documents and Settings\tvail\Desktop\subcontractactuals09-02.xls" as an example. Maybe the commonDialog box is causing my problems. I try without it. James
  7. J

    DoCmd.TransferSpreadsheet ERROR

    The line of code below gives me an error. I believe I get the error because the name of the excel file has a "-" in it. Is there a way I can keep the hypen in the filename?I don't want to check the file to see if it has a hypen then remove it before the transfer. Attached is the error message...
  8. J

    NZ problem in a form using VBA

    Replace varResult = Nz([SumOfTotal Days], "") with varResult = IIf(IsNull([SumOfTotal Days]), 0, [SumOfTotal Days]) James
  9. J

    Tabbing from subform to main form

    Create a procedure that has two parameter. Then when you call the procedure from the LostFocus event pass the name of the first and last field to the procedure. In the procedure do something like this: sub NAME (1st field, 2nd field) place code to set focus to the 1st field. end sub This...
  10. J

    Perform Event Procedure/Compact

    Just type the procedure name in the line above the code for compacting the database. James
  11. J

    Bypass Outlook prompts with VBA

    After downloading the COM object from the link that Drevlin provided above I did the following to send batch emails w/attachment without the Outlook 2002 security alerts. Keep in mind that I modified the code below. It will not send batch emails just a single email. One problem I ran into was...
  12. J

    Bypass Outlook prompts with VBA

    Drevlin, Thank for the info. I will download the com object and play with it. We are also looking into other options. I will keep everyone posted with the results. James
  13. J

    Bypass Outlook prompts with VBA

    I am sending mail and attachments using Access 2002 and Outlook 2002. When my code send the mail Outlook gives me two prompt for each Recipients. I attached a word file with the prompt images. does anyone know how I can bypass the prompts. This applications is a batch mail application and sends...
  14. J

    Do fields exist

    Ok I solved my problem. If anyone wants to know how I got the field names from a table look below. Thanks, James Dim MYdb As ADODB.Connection Dim MYrs As New ADODB.Recordset Dim fld As ADODB.Field Dim sql As String Set MYdb = CurrentProject.Connection sql = "select * from...
  15. J

    Do fields exist

    Ok I solved my problem. If anyone wants to know how I got the field names from a table look below. Thanks, James Dim MYdb As ADODB.Connection Dim MYrs As New ADODB.Recordset Dim fld As ADODB.Field Dim sql As String Set MYdb = CurrentProject.Connection sql = "select * from...
Back
Top Bottom