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

    VB6 - Datagrid BeforeColUpdate not firing

    I have a form with databound (ADO) datagrid. In the grid I have some columns set up as combobox. When I enter a value in the first column (combobox) and hit TAB to go the next column the BeforeColUpdate event doesn't fire. If I change from the combobox-columns to normal columns the event fires...
  2. Knutjo

    Datagrid ADO Requery

    Hi ! I have a problem updating a datagrid connected to a ADODC object and a Access 2000 database. When I am inserting av new record the first time everything is fine. The second time the application stops/hangs up. The same is happening when I am deleting records. I'm doing av Requery in the...
  3. Knutjo

    Problem saving source code after changes in VB-code

    Hi ! I'm working on some VBA-code in my project. After I have done som changes in VBA-code I'm not able to save the changes. En error message says (translated from Norwegian): "Cannot execute save operation". After the error message Access/VB is hanging and I have to stop/kill and...
  4. Knutjo

    How can I access reports recordset

    Hi ! I'm working on/creating a invoice report. When the invoice is printed I want to update the invoice record with info that tells that the invoice is printed and shall not be edited anymore. What is the correct syntax to access the records in the report's recordset ? ... like...
  5. Knutjo

    Datagrid - Toolbar - Adding new records

    I have posted this question here before, but I haven't got the right answer yet. I'm sure someone must have done this before.... I have a form with a DataGrid connected to a Access 2000 database with an ADO-object. In the same form I have a toolbar with som buttons. One button is ment for...
  6. Knutjo

    Report direct to printer or preview

    How can you send a report directly to the printer without first having a preview on the screen ? When in preview.... How do you know that the user sent the report to the printer or he canceled the report before making a hard copy ? Regards Knutjo
  7. Knutjo

    Page setup in Excel from VB

    I have a VB application with an Access database. All reports in my application is sent to excel. When I have finished on sheet I want to my excel-sheet to fit into 1 page wide. How can you do that ?? (I have tried "Mysheet.Pagesetup.FitToPagesWide = 1" but nothing is happening) Knut
  8. Knutjo

    Problems saving a Access project

    I have been writing some VBA-code in my Access project. When I am trying to save I get an error message that says...(translated from Norwegian): "You interrupted previous operation" and then I am not able to save my sourcecode or forms. Can anyone tell me what's wrong ? Environment...
  9. Knutjo

    DataGrid - Toolbar - Addnew

    I have a form with a DataGrid connected to a Access 2000 database with a ADO-object. In the same form I have a toolbar with som buttons. One button is ment for "adding a new record" into the datagrid. When I push the button in the toolbar I want to set focus on the last line in the...
  10. Knutjo

    Prevent saving of data in Datagrid/ADO connected to Access

    I have a form with a datagrid where I am registering a new record. When I am saving the new record I want to validate the fields and prevent the user from saving if anything is wrong. Is it possible to do this by setting some properties in the "BeforeUpdate"-event for the DataGrid ...
  11. Knutjo

    Datagrid - Move to "new record line"

    I'm wondering how I can write VB-code to move the user from som place in a datagrid to the last line where the users normally register new records. Can anybody tell me that ? Regards Knut
  12. Knutjo

    MaxLength of column in datagrid

    How can I set maxlength for a column in a datagrid ? (like maxlength in a textbox) Regards Knut
  13. Knutjo

    Problems creating new record

    I have just finnished my first VB6/Access application and my customer have received the program. When he tries to register a record in one form he gets the error message: -2147217888 - Consumer's event handler called a non-reentrant method in the provider. The error message is triggered after...
  14. Knutjo

    Problem running distributed application

    I'm about to finish a VB6/Access2000 application and need some help with a problem when running the application. After we have installed the program we tries to register a record in a form and gets an errormessage : The field 'table.ID_field' cannot contain a Null value because the Required...
  15. Knutjo

    Change of ADO connectionstring (again)

    When you create a form (design time) i VB with ADODC (against Access) you have to give the full path to database you want to connect to. The path is saved with the form and as a part of the connectionstring. At the "end user site" the path to database will be different from design...
  16. Knutjo

    How can I check a field value not in form

    I'm working on a Access/VBA program where I need/want to do check on a field not represented on the form. My code look like this: If [Tablename].[FieldName] = "something" Then ....dosomething End If I get an error-message that says that field don't exist, but that not true. Tablename...
  17. Knutjo

    Reset autonumber counter

    During developing a database I do some tests and the autonumber counters is increasing. How can I reset the autonumber - counter before installing the database at the end user site
  18. Knutjo

    How to alter table not in form

    Hey! Since I'm very new to Access/VBA I need some help to solve a little problem (I hope). I'm working on a form, which is a typical "order" and "order details" form. The form shows data from det "Order"-table and the "Orderdet"-table. When I create a...
  19. Knutjo

    VBA - Problems Creating new sheets inside a Excel workbook

    Inside an existing Excel workbook i have an existing "master" sheet. This sheet I want to copy a number of times inside the workbook. Every time I reach 60 sheets inside my workbook I get "Subscript out of range (Error 9)". I have made a smal macro which look like this...

Part and Inventory Search

Back
Top