655 Posted Topics

Member Avatar for gowans07

Depends on how you do the printing. You should look into the runtime capabilities of your Printer object, and look for the settings (and set them AT runtime) there.

Member Avatar for gowans07
0
186
Member Avatar for nick_hunk91

Line 39 should probably look something like this: [CODE]con.Execute ("update table4 set Quantity = Quantity + " & qty & " where Item_code='" & Text3.Text & "'") [/CODE] Or, for consistency's sake, get rid of line 37 and change line 39 to: [CODE]con.Execute ("update table4 set Quantity = Quantity + …

Member Avatar for BitBlt
0
1K
Member Avatar for henpecked1
Member Avatar for Turismosan
Member Avatar for gurushankar

Yes, but you have to "downsave" it. When you go to save, use "Save As..." and select "Excel 97-2003 Workbook". That should do the trick.

Member Avatar for BitBlt
0
51
Member Avatar for twistercool

You have several options, but a lot depends on what the data source is behind your ADODB object. What works in SQL Server might not work with some other generic ODBC data source. More details of your scenario would help determine what advice to offer.

Member Avatar for twistercool
0
113
Member Avatar for fatzky_04
Member Avatar for lsvife

Everyone is analytical to a greater or lesser degree. Ever ask a question when you didn't understand something? That's the essence of analysis. Or, as the old saying goes, "Inside every big problem are a bunch of little problems struggling to get out." Analysis is identifying all the little problems. …

Member Avatar for BitBlt
0
164
Member Avatar for nameunknown

You can test for the existence of columns in a specific table using the INFORMATION_SCHEMA.COLUMNS system view, and wrap it inside of an "exists" construct like so: [CODE]if not exists (select 1 from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME = 'members' and COLUMN_NAME = 'username') begin alter table dbo.members add username varchar(10) null …

Member Avatar for BitBlt
0
231
Member Avatar for tania123123123

Without seeing what you already have, it's hard to help. General guidance, though? Entity = a Noun...something in the scenario you are interested in keeping track of. Example: Studio...Customer...StaffMember Attribute = an Adjective...something that describes your Entity. Example: Equipment Portability Type. Relationship = if your Entity affects some other Entity, …

Member Avatar for roshan605
0
180
Member Avatar for meme dreame

You can find all the Swift Codes [URL="http://www.theswiftcodes.com/"]here[/URL], but there are a lot of them, arranged by country. Are you sure you want to get into this? Keeping the list up-to-date would be a bit time-consuming.

Member Avatar for meme dreame
0
263
Member Avatar for gozlemci

Since this is an the MSSQL thread, I guess the first most obvious question is, have you run the query (with appropriate Turkish characters) in SSMS stand-alone? I built a little table with nvarchar(50) columns, populated it with some common Turkish phrases and did some selects, and it worked fine. …

Member Avatar for gozlemci
0
3K
Member Avatar for wezel

This was a fun one, but I do have a couple of questions about your scenario. First, is this always to run for current month, or do you want to be able to set a date range? Next, were you looking for tabular data, or a pivot? And, did you …

Member Avatar for wezel
0
128
Member Avatar for Sameyison
Member Avatar for BitBlt
0
114
Member Avatar for SeniorAlexandro

This looks like a statement. Is there a question here? Please post to show what you've already tried. We aren't a code service, but if you're stuck we will be happy to point out where you should look to fix your problem.

Member Avatar for SeniorAlexandro
0
997
Member Avatar for violette

How are you instantiating wbkFirst? If it is not a Workbook then you can't really get to the worksheets inside. One technique I've used is to create a variable and set it equal to Excel.ActiveWorkbook. Then you can do a for loop through it. Here's some sample code: [CODE]Dim book1 …

Member Avatar for violette
0
410
Member Avatar for uhgarrett24

No real need to store it in an array...the ListBox control is, for all intents and purposes, an array. So, when the user clicks on the "Submit" button, just do this in the cmdSubmitButton_Click event procedure: [CODE]' Assumes some control names, so you'll have to change to match your project …

Member Avatar for BitBlt
0
167
Member Avatar for thetechlady21

Generally speaking, you can't do indexed access methods on straight text files. You have to treat them sequentially, which means you have to operate on the entire file. So, one technique is to load the text file into a stand-alone ADODB.Recordset object (rather than bind it to a control), delete …

Member Avatar for BitBlt
0
253
Member Avatar for thetechlady21

You need to initialize the variable "Flag" to False. If you look at how a Do...While works, it is looking for the entire "While" condition to evaluate to "True". Since Flag = True, then (Not Flag) = False. And we know that your initial values for variable "first" is less …

Member Avatar for WaltP
0
181
Member Avatar for spowel4

It is because you are assigning a scalar variable as output. If you want to get the whole set, just change your stored proc as follows: [CODE]alter PROCEDURE [dbo].[NISUS_GetEDIDocTypes] @pEntityType int, @pEntityID char(10) AS BEGIN SET NOCOUNT ON; SELECT EDXDOCTYPE FROM [dbo].[EDI_EntityDocCrossref] WHERE (EDXENTITYTYPE = @pEntityType) AND (EDXENTITYID = @pEntityID) …

Member Avatar for adam_k
0
1K
Member Avatar for pawan768

You could use an "insert" trigger for that. Or, insert into both tables in one stored procedure, with appropriate existence testing to check if the data is used by the other table.

Member Avatar for adam_k
0
148
Member Avatar for gunnerone

I would say no, because of the whole multiple Analyst thing. I would combine all the Analyst types into a single Analyst table and put three non-identifying relationships to Call (with appropriate role-names for the foreign key attribute names). That way you can have the same analyst be First-Line, Problem, …

Member Avatar for BitBlt
0
143
Member Avatar for ssreevidya.m

You could take a (syntactically corrected ;) ) version of what @jcarbillon suggested. As mentioned before, you have to be careful about the international date formats. If you don't want to do that, then @adam_k's solution won't work if your selected dates cross over a year boundary. You need to …

Member Avatar for red_ruewei
0
5K
Member Avatar for aneeka

Try this: [CODE]select a.product_code, a.productname, a.item_code, a.[date] from dbo.myTestProductTable a inner join ( select product_code, max(date) as maxDate from dbo.myTestProductTable group by product_code ) b on a.product_code = b.product_code and a.[Date] = b.maxDate [/CODE] Caveat: my test table defined the date column as a varchar...so if you need to do …

Member Avatar for BitBlt
0
121
Member Avatar for dbrgdbrg

Create a table ("Options" or whatever) that contains a key, and a character column. Populate the table with the allowable values, including "Other". Create a table ("Users") that contains (in addition to keys and other columns of interest) a number (not nullable, foreign key to the "Options" table) and a …

Member Avatar for BitBlt
0
154
Member Avatar for diamondw

The kind of generalized help you are looking for is not the sort of help we supply here. If you need assistance with such fundamental concepts of MSAccess as queries and forms, and how to use a form and how to link data to it, you should probably either buy …

Member Avatar for BitBlt
0
241
Member Avatar for moone009
Re: SSIS

I guess the immediate question is, how conversant are you with SSIS? If you're pretty good, you can use a ForEach Loop Container, iterate through a collection of variables and change the source server (or database name) with each iteration. Then inside the container, create a single DataFlow. Inside the …

Member Avatar for moone009
0
111
Member Avatar for The Dude

I got reading #4: [QUOTE]Cats spend their days sleeping, washing, eating. They have no trouble asking for what they want. They'll use you for furniture if they feel like it, and if you get in their way, you'll get washed, too, with their remarkable tongues. Take care of yourself like …

Member Avatar for darkagn
0
119
Member Avatar for vjwilson

Sounds like this could be handled with a TANK_STATE table (child of Tank table) that would have a unique id and foreign keys TankID, LocationID (the physical location), TankState ("used", "unused", "retired", etc.), FuelType ("jet", "rocket", etc.) and StateChangeDateTime. That way, if the Tank is taken out of service, a …

Member Avatar for BitBlt
0
243
Member Avatar for shers

More information needed about your scenario. What are you using to do the value testing? If you just want to use SQL, then you have to do something clunky like using a CASE statement that tests each column against the desired value. If you are using some data access method …

Member Avatar for BitBlt
0
66
Member Avatar for v_janssens

Assuming for the moment that you have all the function declarations and constants included that you need for the Win32 function calls, you may want to check the actual contents of the return value (as in what datatype) from the Shell command and make sure it isn't conflicting with your …

Member Avatar for BitBlt
0
291
Member Avatar for kanyonb38

Just make sure to convert the value in your text box to a numeric datatype using a conversion function. Since you are calculating prices, you might consider the CCur conversion function. Look in the VB help file for details on how to use it. You might have to test the …

Member Avatar for BitBlt
0
100
Member Avatar for GrimJack

I can just hear the trial now: Rep. Todd: "But, your honor, it wasn't in my posession at all! It was stuffed down beside the car seat!" Judge: <facepalm>

Member Avatar for pseudorandom21
0
468
Member Avatar for mspatel724

In my opinion, it is not actually necessary to be a programmer to be successful in Information Technology field. There are many different specialties within what is considered "IT". If you want to develop applications, then programming is usually required to a greater or lesser degree. If you want to …

Member Avatar for Coolyfett
0
259
Member Avatar for whitejava

Personally, I haven't ever run across a requirement to separate successive calls into discrete packets. However, other experience with the WinSock control leads me to offer this suggestion: after each SendData invocation, put in a "DoEvents" command like so: [CODE]Winsock1.SendData "String1" DoEvents Winsock1.SendData "String2" DoEvents[/CODE]In other instances of using WinSock …

Member Avatar for whitejava
0
2K
Member Avatar for BitBlt

John McCarthy, father of the LISP programming language and giant in the AI community, has passed away at the age of 84. Rest in Peace. [URL="http://www.slashgear.com/grandfather-of-artificial-intelligence-john-mccarthy-passes-away-25190622/"]http://www.slashgear.com/grandfather-of-artificial-intelligence-john-mccarthy-passes-away-25190622/[/URL]

Member Avatar for cwarn23
3
163
Member Avatar for MARKAND911

The login you sign in with has to have appropriate administrator-level permissions before you can create a login. You need to log in with a username that has those permissions, or get one of the database administrators to grant your existing login that level of permission. Either that or get …

Member Avatar for BitBlt
0
147
Member Avatar for abhishekkp

"Recordset.Delete" will only delete the active row. You either have to iterate through the recordset and advance the current row or do what @debasisdas says. Please don't post if you haven't tested your solution.

Member Avatar for jireh
0
2K
Member Avatar for CSharpUser

I believe you are trying to use @TestRunId in the wrong scope in line 17. You may have to do something like: [CODE]... AND TestRunID = ' & @TestRunId & ')') ...[/CODE] to include the variable from the proper scope. Not tested, just an observation. sorry about the formatting...not having …

Member Avatar for BitBlt
0
504
Member Avatar for dwiniers

Between lines 18 and 19, you might want to test the value of your string variable "s" and the value of your ComboBox to determine if there are valid values in both. If there aren't valid values in both, then raise an appropriate message box and exit the subroutine. I …

Member Avatar for dwiniers
0
339
Member Avatar for vishwanath.m

Personally, I don't recall ever using a cursor for inserting data. Could you give us a little more detail about the circumstance you have in mind? Maybe post an example? If we knew a bit more we might be able to come up with a rationale or an explanation (or …

Member Avatar for adam_k
0
137
Member Avatar for great_learner

Here's a handy little script I use when I "lose" tables. It will basically iterate through every database in the SQL instance and list all the tables/views. Feel free to tweak it to limit or increase the scope (as in, database_id > 4 or so to exclude system databases like …

Member Avatar for BitBlt
0
694
Member Avatar for manhthaodn

What have you already tried? Also, you aren't being specific enough to allow any help. Here are some sample questions that might help you refine your request. Does it have to be truly random? Or can you just cross-join the two source tables and use results from that? Do the …

Member Avatar for BitBlt
0
554
Member Avatar for odysseous

I can see why you have problems. To begin with, it appears that the rows are of several different formats. In order to be able to parse all that you need to read row by row, make some logic choices and grouping breaks, and decide where each of the data …

Member Avatar for BitBlt
0
227
Member Avatar for sasom88

Interesting and subtle little problem. But your summary of the requirements doesn't quite match the result set you display. Let me see if I understand the requirements based on the result set displayed: 1. If there is a match in ID between t1 and t2 only, show the row. 2. …

Member Avatar for BitBlt
0
203
Member Avatar for cwarn23
Member Avatar for jackmaverick1
0
124
Member Avatar for mightyjoe77

You should post some code to show what you've tried. That being said, can we assume you're using a "Line Input" type of construct to read each line of your file into a string? If so, you might want to try using "SPLIT" to break it into pieces. Just keep …

Member Avatar for hkdani
0
104
Member Avatar for nyadimo
Re: DBA

[URL="http://www.dbasupport.com/forums/archive/index.php"]http://www.dbasupport.com/forums/archive/index.php[/URL]

Member Avatar for Smeagel13
0
125
Member Avatar for henpecked1

Is this going to be an ongoing periodic task, or a one-time load? It would make a difference in design. If it's one-time (and assuming you have MS-Access on a Windows client), you could do the table loads using the MS-Access Import wizard (once for each table, assuming they have …

Member Avatar for hkdani
0
126
Member Avatar for ticktoc09

You have several options. First and simplest is to have the database and the application in the same directory. Then the connection path is ".\db.mdb" and it will always look in current directory, no matter where you execute from. If that's not an option (as in you have to point …

Member Avatar for hkdani
0
162

The End.