Recent content by lupis

  1. L

    Hi, I guess you have been really bussy, if you get some time over I would appreciate a reply on...

    Hi, I guess you have been really bussy, if you get some time over I would appreciate a reply on my last post regarding our thread about pausing execution of macro
  2. L

    Pausing macro execution with if condition

    Here is the code for the form: '------------------------------------------------------------ ' cmdSendReport_Click ' '------------------------------------------------------------ Private Sub cmdSendReport_Click() Dim varName As String Dim intNumOfRecs As Integer Dim intResponse As Integer...
  3. L

    Pausing macro execution with if condition

    After iniating the report from the form DoCmd.OpenReport "PurchaseByPerson", , , , , acDialog is printing the report but neither the messagebox or the SendObject ever gets fired
  4. L

    Pausing macro execution with if condition

    This is the code for the report on activate: '------------------------------------------------------------ ' Report_Activate ' '------------------------------------------------------------ Private Sub Report_Activate() On Error GoTo Report_Activate_Err DoCmd.OpenReport "PurchaseByPerson"...
  5. L

    Pausing macro execution with if condition

    But I want to show the user the result of the search, I want the user to view the result of the search, halt execution of the SendObject, if the user approves of the resultset, then unpaus, so the SendObject can be executed. Thats why I had the second messagebox, I thought I could show the user...
  6. L

    Pausing macro execution with if condition

    I am not asking for a blank report, after supplying the searchstring to the textbox, if there is a valid result I want to the report to be displayed before sending it to outlook, or if no record is found to prompt for a new search.
  7. L

    Pausing macro execution with if condition

    I tried it out, it works.. I am using a textbox in a form to provide for the serachstring. My problems is that I need to see my report before firing the SendObject command. In my case I see the report behind the form but its not accessable becuase I have a messagebox waiting for a prompt. If...
  8. L

    Pausing macro execution with if condition

    I have a form with a macro that has the action "SendObject" that sends a report by email. In the report itself I have macro that displays a messagebox if no records were found. What I want o achieve is to halt the "SendObject" macro if no records were found and stop loading Outlook, instead...
  9. L

    Executing INSERT INTO Error

    Hi PNGBill, You were quite right :), didnt at all think about the autonumber would be the issue, but quite logical ofcourse. But it will be a valueable lesson for the future, this is acutally my frist foray into access and sql. -Sohail
  10. L

    Executing INSERT INTO Error

    For the fields regarding the append query, the local table has all the fields set as Text, except the PK whick is a "AutoNumber" and one field which is set to "Yes/No" The same fields for the remote table are set to" nvarchar" instead of text and "int" for the PK instead of "AutoNumber" and...
  11. L

    Executing INSERT INTO Error

    This was actually a first test run, with no other users online, all other queries, for example INSERT INTO from the SQL Server to local tables or update queries both ways dont have this issue. Is there any way to paus the execution of the child table in my macro. The sequence that I am using...
  12. L

    Executing INSERT INTO Error

    Thanks for your reply, the issues you mentioned, wouldnt they also be valid when saving the record locally, so,how come that tre records locally a saved with any problems?
  13. L

    Executing INSERT INTO Error

    I am creating a query to find unmatched rows between a local access table and an online MS SQL Server table based on the PK field ID. This is working without any flaws. My problems start when I run a append query with INSERT INTO based on the result of the former. I get the following error...
  14. L

    multi value search in textbox of a form

    Thanks a lot
  15. L

    multi value search in textbox of a form

    By the way, can I empty the searchstring in the text searchBox when I click for "show all records". This is my current code for showing all records when I set the filter to false: Private Sub cmdShowAll_Click() With Forms![Copy of Contact List] .FilterOn = False End With End Sub First I want to...
Top Bottom