Yahoo Poland Wyszukiwanie w Internecie

Search results

  1. 6 cze 2013 · You don't want to just do this in the query itself? You can use iif() in a query, you shouldn't need to use VBA

  2. 29 mar 2022 · This example shows how Do...Loop statements can be used. The inner Do...Loop statement loops 10 times, asks the user if it should keep going, sets the value of the flag to False when they select No , and exits prematurely by using the Exit Do statement.

  3. 21 sty 2022 · Use Do...Loop statements to run a block of statements an indefinite number of times. The statements are repeated either while a condition is True or until a condition becomes True.

  4. 28 maj 2015 · Basically you'll need to execute the .Parameter.Add() line for each parameter in your stored procedure, and you'll be good to go. Note that you don't need to write a whole Sub() to do it, you can just include the Set oParam = oQuery.Parameters.Add() line in your existing code.

  5. 9 wrz 2022 · The function. Assuming that we already know that we will need to check the amount of rows for 2 sets of specified parameters, let’s create a function for that. The creation of this function can be broken down into 3 parts: – SQL string query – connection query – ADODB recordset. SQL string query.

  6. 14 paź 2016 · You don't need to "consolidate" the code, you need to tear it apart and extract each responsibility into its own function, break it down into multiple, smaller, more specialized procedures. You want to run a command for each row of a given range: you need a procedure that runs a command for a single row , and call it from another procedure.

  7. 2 lut 2024 · The code below connects Excel with the SQL server using an ADO object which allows connection through a remote data source. With this object, VBA can access and manipulate the database. However, the ADODB object does not come automatically with the default library used by VBA.

  1. Ludzie szukają również