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 SkipVought 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: *

  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

    ....the "button"-solution is of course a way to do this, but if you want to have a automatic resort of records in the datagrid where would you placed the "requery"-method ? (the sort property had no effect...) Thanks (again) CCLINT
  3. Knutjo

    Datagrid ADO Requery

    ....yes, I can remove it but then the records in the datagrid is presented in nonsorted order after inserting records. I want sort the records by a code in one of the columns. Knutjo.
  4. Knutjo

    Datagrid - Toolbar - Adding new records

    Thank you so much for your help CCLINT. Have been hooked up in some other things so I haven't been able test all your tips until now. You gave me the idea of turning off AllowAddNew in the datagrid and programmatically control everything. That seems to be the soulution for me. I have to do a...
  5. 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...
  6. Knutjo

    How can I access reports recordset

    Hello everyone ! Thanks for your help and hints. I solved my problem with a modal form. When I start the invoice report I use a modal form. In this form I can control what to do with some global variables. Actually it was pretty simple... In this form with a recordset all printed invoices was...
  7. 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...
  8. 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...
  9. Knutjo

    Datagrid - Toolbar - Adding new records

    Thank you CCLINT, but it still doesn't work. I have just tried to implement what you wrote. The last line in the "DataGrid", which is ment for inserting new records, disappears with your example code. The only way to get the DataGrid to trigger OnAddNew event is to insert records on...
  10. Knutjo

    Datagrid - Toolbar - Adding new records

    Thanks CCLINT ! ....but this gives me the same result as before. One line is inserted before the "*"-line where new records are supposed to entered. When doing it this way you don't get events like "OnAddNew". Regards Knutjo
  11. 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...
  12. 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
  13. 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
  14. 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...
  15. Knutjo

    DataGrid - Toolbar - Addnew

    Thanks binky, but I have tried that and it doesn't help. Those commands are adding a new blank line at the end, but before that line used for registering new records (the line marked with a '*'). If I use your commands I don't get the event "OnAddNew" which I use to set some default...
  16. 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...
  17. 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 ...
  18. 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
  19. Knutjo

    MaxLength of column in datagrid

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

    Problems creating new record

    'tblBruker.BrukerID' is a Text field and is the key-field for the record. "Required" is set True on this field

Part and Inventory Search

Back
Top