Posts
 
Reputation
Joined
Last Seen
Ranked #101
Strength to Increase Rep
+10
Strength to Decrease Rep
-2
97% Quality Score
Upvotes Received
213
Posts with Upvotes
171
Upvoting Members
110
Downvotes Received
6
Posts with Downvotes
5
Downvoting Members
5
86 Commented Posts
23 Endorsements
Ranked #54
Ranked #122
~364.36K People Reached
About Me

Been in IT for years. It never gets old. If your problem is solved, be sure to mark your thread *Solved*.

Interests
Work, computers, music. GTK+ C programming. Dart and Flutter. Unusual operating systems.
PC Specs
Dell XPS 8920, 32Gb memory, 4Tb worth of PCIe and SATA NVMe drives, Intel Core i7, Linux Mint.
Member Avatar for vegaseat

"It is the responsibility of every citizen to question authority." -- Benjamin Franklin

Member Avatar for Reverend Jim
15
13K
Member Avatar for Duki

I'm eating home-made beef stew. Definitely worth the effort. Two lbs stew meat, 1 head of celery topped and sliced, 5 carrots sliced, 5 good-sized potatoes cubed to 1 inch, 1/2 a yellow onion diced, 1 tbsp parsley, 1 tsp salt, 1 tsp black pepper, 7 bay leaves, 1/4 tsp …

Member Avatar for Dani
22
17K
Member Avatar for LastMitch

"It Might Get Loud" "The Little Mermaid" "Star Wars (A New Hope)" "Spirited Away" I have a daughter and a son. Guess which movie I watched with which kid? :-)

Member Avatar for LoanHensley
6
6K
Member Avatar for Ancient Dragon

Two Database Administrators walk into a NoSQL bar. They leave because they can't find a table.

Member Avatar for jkon
4
4K
Member Avatar for AleMonteiro

Personally, I cut over to Linux Mint several years ago. When WinXP support sunsetted, I didn't have the cash to get a new machine to run Win7, and I thought my old Dell Dimension (maxed out at 2Gb of memory) still had some life. So I just took a deep …

Member Avatar for BitBlt
1
627
Member Avatar for matoo

I'm assuming that you have this code in the Form_Load event? If so, you can't use SetFocus until the form itself is visible (Reference: [Microsoft VB6 Documentation](https://msdn.microsoft.com/en-us/library/aa244175(v=vs.60).aspx)). One method to work around this is use a "sub Main" to show your form, then set all the relevant stuff afterward. So, …

Member Avatar for BitBlt
0
221
Member Avatar for meLiel

Please note that the asterisk wildcard character should be used for MSAccess SQL. The percent sign, as in @JxMan's example, is the wildcard character for MS SQL Server. There are other wildcard characters that are used for different purposes. You can find a full list of them in the MSAccess …

Member Avatar for Reverend Jim
0
12K
Member Avatar for rony001

You are very close. The last dynamic query returns SQL statements, not results, like so: Line 1: SELECT ISNULL(SUM(amount),0) AS a FROM table1 Line 2: SELECT ISNULL(SUM(amount),0) AS a FROM table2 Even if you execute them, it doesn't quite give you what you need. You need to also UNION them …

Member Avatar for BitBlt
0
705
Member Avatar for samuelz

This error usually occurs when you are referencing an identifier that has no context within your query. So, for instance, if you say select myTable.myCol1, MissingTable.myCol2 from myTable it will give you the same error..."MissingTable" has no context...it doesn't appear in the "FROM" clause. If you want to update one …

Member Avatar for BitBlt
0
272
Member Avatar for goowee

Your best bet is to store each of the sets in a single string, then use the "SPLIT" function in VB6 to parse the sets into a series of one-dimensional arrays, then iterate through the arrays. Here's a crude example to get you started. You might have to play with …

Member Avatar for BitBlt
0
161
Member Avatar for diafol

I have to say I'm not much of a poetry afficionado, but I do know a good source that might help you with the chasing...go to www.gutenberg.org. Lots of books (literature, poetry, a whole bunch of great stuff!) and it's searchable. And no, I'm not the owner of the site...but …

Member Avatar for joseCRJ
1
547
Member Avatar for ~s.o.s~
Member Avatar for bonzo2008

If you know what the filename is for the old file, you can just use a FileSystemObject like so: Dim fs set fs = CreateObject("Scripting.FileSystemObject") ' ' do whatever you need to here using the FileSystemObject methods ' set fs = Nothing and rename the file, then save the new …

Member Avatar for BitBlt
0
191
Member Avatar for abelLazm

Granted. Everyone is dead. Very peaceful. (ewww...even I think that's icky) I wish I had an independent income of $100,000 US per year.

Member Avatar for James_40
8
9K
Member Avatar for Amr_Mohammad_R

I actually wasn't able to get your second function to compile, but I tweaked it a tiny bit. Final result looked like this: (renamed the function so it wouldn't stomp on anyone's original) create FUNCTION [dbo].[StockNumbers2] () RETURNS @SequenceNumbersOfShares TABLE (StockNumber BIGINT) AS BEGIN DECLARE @MIN BIGINT DECLARE @MAX BIGINT …

Member Avatar for Taywin
0
228
Member Avatar for happygeek
Member Avatar for showman13

Look at the "Substring" function in the documentation. Use a "where" clause that specifies to return all rows where the first 6 positions of user = 'ZZZQQQ' and then update user = substring(user from 7).

Member Avatar for showman13
0
254
Member Avatar for jarp

At the risk of reviving a stale thread... It looks like you aren't including a "FROM" clause. You have a bunch of joins but never include the anchor table. I reformatted your code and included a comment that might make it clearer: SELECT TOP (1) CONVERT(varchar, tmpRptAssetEvent.EventTimeStamp, 120) AS 'DateTime', …

Member Avatar for BitBlt
0
202
Member Avatar for myiwlu10

At the risk of reviving a stale thread... Since we can't see your data division, it's kind of tough to tell what's wrong. However, your logic says that if the value in EMPL_GNDR = 'M' then do something...otherwise tally the record as 'FEMALE'. So that means if there's garbage in …

Member Avatar for BitBlt
0
182
Member Avatar for FutureDev86

Does "lbl1" refer to a Label control on a form? If so, you should be setting "lbl1.Caption" instead of "lbl1.Text" equal to your value. If this is not the case, we need more information about your application before we can provide guidance.

Member Avatar for Richard_16
0
602
Member Avatar for davy_yg

First a little background...when the SQL Server services get installed, they have to have a security context that has sufficient permissions on the local server to do what it needs to do. Usually the person doing the installation has local administrator permissions on the server, but it is usually NOT …

Member Avatar for davy_yg
0
244
Member Avatar for zebnoon

Where is the object "conn" set? Are you supposed to be using Module1 as your ADODB connection? If so, then you need to specify that in your recordset open statement.

Member Avatar for rasheedraj
0
1K
Member Avatar for debasisdas
Member Avatar for James_28
8
16K
Member Avatar for Skate Bart

You can do highlighting by setting the CellBackColor property for each cell in the row. Here's a little code snippet that will steer you in the right direction: Me.MSHFlexGrid1.Row = 10 For j = 0 To Me.MSHFlexGrid1.Cols - 1 Me.MSHFlexGrid1.Col = j Me.MSHFlexGrid1.CellBackColor = vbGreen Next j Hope that helps! …

Member Avatar for Mamoundi
0
549
Member Avatar for Dani

This might work. I didn't get a chance to test it on mySQL but it uses ANSI standard SQL and it works in MSSQL just fine...you might have to tweak it because of the square brackets in the name since "user" is a reserved word in MSSQL. update a set …

Member Avatar for Dani
0
381
Member Avatar for mrnutty

For me, not so simple to explain. First some background: I used to do some Win32 graphics programming. One of the methods used in animating is heavily using a technique called a Bit Block Transfer. Basically, you reserve an area in memory, do some manipulations like setting pixel properties, then …

Member Avatar for Reverend Jim
0
681
Member Avatar for Ahmed_39

Interesting little problem. I was able to get a result set that I think is what you're looking for, but it shows all the detail lines. It does, however demonstrate the technique, so I hope you can use it as a starting point for further refinement depending on your needs. …

Member Avatar for Ahmed_39
0
196
Member Avatar for micca.jhai

When you create your expirationdate string from the values from combo2, combo3 and combo4, it comes out with no formatting. The default value returned by the datepicker is a formatted date. Here's a little code snippet that you can use to demonstrate this: Debug.Print "Datepicker: " & datepicker Debug.Print "expirationdate: …

Member Avatar for BitBlt
0
385
Member Avatar for <M/>

Guitar (electric, acoustic, classical), baroque recorder, harmonica

Member Avatar for diafol
0
234
Member Avatar for <M/>
Member Avatar for <M/>
0
1K