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

    How to declare a public variable

    Hi everybody, I have to declare a Globale variable in VBA so that I can reuse it in another function (sub). What is the syntax please ? Can I declare it everywhere in my project ? Thank U
  2. MrBaRRon

    Printing various Access reports in VBA

    Hi everybody, I need to print various Access reports (about 6 reports) in VBA. Does anyone know the function or the syntax to do it ? Thank U
  3. MrBaRRon

    How to make the sum of two fields of a an Access table

    Hi everybody, I would like one field in an Access table be the sum of two others fields in this table. Thank U.
  4. MrBaRRon

    How refresh the data of a table without closing the form

    Hi everybody, I would like to refresh , update the data of a table without closing the form linked to this table. Indeed I would like when I open another form from the first form, that It shows the new data I filled in the first form. Is it clear or I must explain better ? Thank U
  5. MrBaRRon

    make one account able to modify the password of the users's account

    Hi everybody, I would like in a Access database to make one account able to modify and delete the others users's account password. Is it possible ? So that , only one account or a group manages the security of the databe. Thank U
  6. MrBaRRon

    Get the date of the last modification

    Hi everybody, I would like to get the date of the last modification in wrod and excell file. Besides, I wouldlike the same things for an access form, I mean, when the user modify datas dispplayed in an Access form, I would like to get the date. Thank U .
  7. MrBaRRon

    Variable name for forms control

    Hi everybody, I would like to set the value of a form control but dinamically. Example: Currently I used this syntax: wrd.ActiveDocument.col_eur.Value = "TEST" Is it possible to use this kind of syntax ?: Dim num_control As Variant num_control = 'the value of another field '...
  8. MrBaRRon

    Open word et access to textbox within the active document in VBA

    Hi everybody, I would like to open Word and I want to set the value of the textbox within the document, in VBA of course. What is the way ? Thank U
  9. MrBaRRon

    center the content of a sheet before printing in VBA

    Hi everybody, I need to align at the center the content of an Excel sheet. (Forms control and cells). But the width of the content is not always the same. I would like the code to center automatically before printing in VBA. Thank U.
  10. MrBaRRon

    How to delete or hide a column below a cell

    Hi everybody , I want to delete or hide all cells after one cell: The column below or the line on the right of the specific cell. How Can I do that ? Thank U.
  11. MrBaRRon

    "distant server not responding" when openin a word file

    Hi everybody, I use this code to open a Word file from ACCESS: Set wrd = CreateObject(Word.Application) Wrd.visible = true wrd.Documents.open "c:\test_vba\test_vba.doc" It works well the first time, but when I close Word and the document and I click again on my button to execute the...
  12. MrBaRRon

    Open a word file from access with vba

    Hi everybody, I have some troubles to open a word file from ACCESS in VBA. The syntaxI use works only when Word is already opened. Can U give me a code who works even if Word is closed I mean a code that open word and open the file without troubles Thank U
  13. MrBaRRon

    executing vba code when the Word document is opening

    Hi everybody, I would like that my code is executed when the Word document is load, when we open it. Where must I put the code ? What must I do ? Thank U
  14. MrBaRRon

    Open word and give it the value of access control form

    Hi everybody, I want to create a word document from ACCESS ( when the user click on a button within the ACCESS form ). The code I want to make must create a table in this new document with a number of lines that depend of the value that user putted in the form. By example, if the user put 45...
  15. MrBaRRon

    DISTINCT QUERY

    Hi everybody, I would like to select all "id" in a table ONLY where "raff" is distinct. I think it should be such a thing: SELECT id FROM mytable WHERE (SELECT DISTINCT raff) or SELECT id FROM (SELECT DISTINCT raff FROM mytable) So what is the correct syntax Thnak U...
  16. MrBaRRon

    SELECT INTO VARIOUS TABLES

    Hi everybody, I have 3 tables which have the same primary key, I would like to select * (ALL) from these 3 tables in one query where the primary key is the same. This is my current code into only two tables : sqlselect_affaires_clients = " SELECT * FROM CHANTIERS JOIN CLIENT_FINAL...
  17. MrBaRRon

    Check if a caracter exists in a sql field

    Hi everybody , I would like with a Stored procedure check if a caracter exists in a sting stored in a SQL server field. Example : My field contains the caracters "ABCDEF" , I would like to check if "C" is in this string. Tank U
  18. MrBaRRon

    variable increment

    Hi everybody I have a variable I would like to increment 1 by 1 in vbscript It looks like '001' untill '999' My problem is when I add "1" to the value "005" (by example) , it don't return '006' but '6' . I would like to keep this syntax '006' So what do you propose...
  19. MrBaRRon

    type incompatible

    I really don't understand. I've got an error : Erreur d'exécution Microsoft VBScript error '800a000d' Type incompatible My source field "numaffaire_pro" is bigint My destination field "test" is bigint This is my code : Sub OpenDatabase(ByRef dbConn) Set dbConn =...

Part and Inventory Search

Back
Top