655 Posted Topics

Member Avatar for knitex

What's the datatype of the Date of Birth column? If it is text, you can just use some string manipulation functions (mid(), format(), etc.) to break the string apart and re-assemble it however you want. If it's date/time it becomes a little trickier, as you have to use the datepart() …

Member Avatar for chuckc
0
278
Member Avatar for frogboy77
Member Avatar for BitBlt
0
91
Member Avatar for eniine

Actually, that property is not exposed at design time. It's not even exposed at run-time unless you use direct WinAPI calls (good luck with that). That's the disadvantage of using some of the packaged controls...you get what you get. As an alternative, you might consider just using an unbordered picturebox …

Member Avatar for BitBlt
0
288
Member Avatar for neosonic

How are you instantiating the form? Are you starting up from sub main() or from the form itself?

Member Avatar for neosonic
0
367
Member Avatar for sidra 100

You forgot step zero: 0. Talk to a person who has a fuzzy idea of what they want the computer to do for them. 0a. And unrealistic expectations of how involved they have to be during development. 0b. And unrealistic expectations of how long it will take to finish. 0c. …

Member Avatar for Rashakil Fol
0
352
Member Avatar for zanirzrold

Cheating? Not at all. Anything you can do (except perhaps an outright lie) to get the prospective employer's attention is fair game. My dad is also in IT and I used him as a professional reference for years. Of course, I told him I was going to, and got his …

Member Avatar for Rashakil Fol
0
101
Member Avatar for jovillanuev

I have a solution (I think), but shouldn't your "Results" look like this? [CODE]right result ESN|Shipdate |returndate 123|2011-01-03|2011-02-20 123|2011-03-02|NULL 123|2011-04-10|2011-05-18[/CODE] Please confirm if this is the case, then I will post what I have. Also, in the spirit of "Help those who have at least have tried", please post what …

Member Avatar for jovillanuev
0
102
Member Avatar for BlackJavaBean

I know that to print graphical stuff (as opposed to pure text) you are generally better off coding to a library like OpenGL or wxWidgets. That way you only have to worry about a memory device context and not the actual driver-level stuff. The library and operating system will handle …

Member Avatar for Adak
0
142
Member Avatar for diafol

[QUOTE=Narue;1592321]Or you could just, you know, remember the folks who rub you the wrong way. [/QUOTE] I agree with that sentiment. Just going formulaically (is that a word?) based on post counts may give a hint, but every member has his good/bad points. A straight count doesn't tell you how …

Member Avatar for VernonDozier
0
156
Member Avatar for capiuy

Part of the problem I see is that you are trying to force semantic equivalence on non-mappable syntax. Ever heard of a book called "Godel, Escher, Bach: An Eternal Golden Braid" by Douglas Hofstadter? He has some interesting chapters on reductionism vs. holism. Your design attempt sits squarely on that …

Member Avatar for smantscheff
0
278
Member Avatar for Unhnd_Exception
Member Avatar for joaep2

Unless you're willing to use Windows API calls, VB doesn't really do dynamic control creation very well. Partly this is because of the whole event procedure registration thing, callback function stuff and the like. As a workaround, you can create the necessary buttons at design time, but make them Visible …

Member Avatar for aquamarine_kath
0
125
Member Avatar for BitBlt

I was poking around in the Control Panel and noticed the Event Reminders link down at the bottom. Being a nosy sort, I clicked on it and was unsurprised to discover I had no reminders. However, I then clicked on the Calendar link near the top of the page and …

Member Avatar for twiss
0
173
Member Avatar for twsmale

Split returns an array, so you have to reference your variable as an array. So, for example, if you reference avarSplit(0) you will get the first element in the array, avarSplit(1) will get you the second, etc.

Member Avatar for twsmale
0
228
Member Avatar for mariko

[QUOTE=Tellalca;1580033]... generally scripting means writing some commands run line by line, not compiled. Programming generally means writing some heavy weight code that is compiled into machine code.[/QUOTE] I beg to differ. What about JavaScript? VBScript? These are considered "scripting", but can be as intricate as any compiled program. What about …

Member Avatar for vegaseat
0
165
Member Avatar for manxe

If I was given that task, I'd probably write some Powershell scripts. It's pretty easy with Powershell to iterate through directory trees and look at file contents, and copy stuff around. Problem is, it takes some time to get familiar with Powershell (less than 180 weeks, though) so if you …

Member Avatar for Ancient Dragon
0
151
Member Avatar for whin_lopez

Common de-duping problem. Part of the issue is that you need to identify which records you want to KEEP, then delete everything else. To do that, you have to correlate your subselect so that the ID's of the records you want to keep are excluded from your outside select. One …

Member Avatar for BitBlt
0
190
Member Avatar for crazycat503

Could it possibly be a problem with MSAccess interpreting your dates incorrectly? I notice you're using DD/MM/YYYY rather than MM/DD/YYYY. You might want to force the format in your query.

Member Avatar for ChrisPadgham
0
138
Member Avatar for feedz87

The file you saved is a SQL backup. You have to RESTORE to get it into SQL Server. You can either do this through the Management Studio GUI or using a RESTORE DATABASE command (look in BOL for syntax). Keep in mind that the Management Studio GUI expects the file …

Member Avatar for BitBlt
0
202
Member Avatar for uniguyUK

Just so you know, the idea of "right" is sort of amorphous. If your data structure stores your data the way you need it then it can be considered "right enough". If you want to know whether your data structure follows a specific set of rules, such as "normalization", that's …

Member Avatar for uniguyUK
0
150
Member Avatar for sngapoonage

That size is relatively small, but you'd have to change your table structure every time you added a new "achievement". Much better to have a normalized table structure, then you can dynamically add achievements without disrupting your existing data. Of course, adding a column in SQL Server is trivial itself, …

Member Avatar for sngapoonage
0
147
Member Avatar for MAnders09

The only way I know of to do this is calling the Win32 API manually. First you get the process ID by iterating through the running processes, compare the process EXE file name until you find the one you want, then get the hWnd and send it a message asking …

Member Avatar for MAnders09
0
310
Member Avatar for banmikko
Member Avatar for jayz93

Not much to go on here. Here are some questions that might help you troubleshoot: What are the data types of the columns? Is there a mismatch between source/target? What is the format of the incoming data? Is it formatted the same way as last time you performed this task? …

Member Avatar for BitBlt
0
547
Member Avatar for niall_heavey

The only way I know how to do something like that is with a macro, something like:[CODE]Sub AddPaid() For i = 2 To 4 If Excel.Cells(i, "M") = "Paid" Then myValue = myValue + Excel.Cells(i, "L").Value End If Next i Excel.Cells(5, "M").Value = myValue End Sub[/CODE]but I don't think that's …

Member Avatar for wilsonkiw
0
194
Member Avatar for neosonic

You could always add another key column (fieldC) to TableA. If you're getting duplicates, then your normalization is incomplete and your TableA can't uniquely represent the data you need to store. Or you could cheat and create another column as primary key that is an identity column, and take fieldA …

Member Avatar for neosonic
0
193
Member Avatar for ndeniche

I guess I'm just not quite understanding the question. Are you talking about a replication scenario? Or perhaps a partitioning scenario? Or a concurrent-user application? Parallel computing implies more than one thread performing the same work on different segments of a problem (such as updating ranges of data in a …

Member Avatar for BitBlt
0
254
Member Avatar for jay.barnes

Okay, so this was a fun one. I had to do this using a fake table, plus I used Access2003 (hope you don't mind -- syntax should be the same). First, create these queries: qryDistinctCustNbr: [CODE]SELECT DISTINCT dbo_TransStuff.CUSTNBR FROM dbo_TransStuff;[/CODE] qryFor1231: [CODE]SELECT dbo_TransStuff.CUSTNBR, dbo_TransStuff.TRANSYTD, dbo_TransStuff.RPTDATE FROM dbo_TransStuff WHERE dbo_TransStuff.RPTDATE=#12/31/2010#;[/CODE] qryFor0528: …

Member Avatar for jay.barnes
0
183
Member Avatar for iamthwee

My gym routine is: AVOID LIKE THE PLAGUE. I have never regularly used one. I don't "look down" on people that do, it's just not for me. Historically, I prefer to do activities that require one to move around a lot in more non-repetetive motions. Basketball, softball, hiking, volleyball. I …

Member Avatar for hotmatrixx
0
140
Member Avatar for mrnutty

I like to read Victorian and Edwardian-era romance novels. NOT the modern day "Gothic Romance" spew, mind you...I'm talking about Austen, and Bronte, and Eliot...Wilde and Forster and Burnett...Richardson, Trollope, James... Look on gutenberg.org (the greatest collection of free literature on-line!) But I also like he-man adventure or sci-fi stories …

Member Avatar for sergent
0
83
Member Avatar for Bob Jacobs

Unfortunately, VB is very good at hiding the API calls needed to create a class dynamically. In VB when you create a form it becomes a referenceable class, so you have to instantiate it explicitly. As an alternative, you might consider using an array to hold instances of your forms, …

Member Avatar for Bob Jacobs
0
97
Member Avatar for WolfShield

But...my hobby IS programming! Just in obscure languages like FreeBASIC, VB-DOS, QuickBasic, NASM, etc. Oh, and DaniWeb is my newest hobby. Wait, that's still programming, to some degree. Hmmm...Oh, yes...I play a guitar a bit. And harmonica. And baroque recorder.

Member Avatar for jwmollman
0
209
Member Avatar for WolfShield

[QUOTE=Kraai;1580599]Any legal idea that can create some income...[/QUOTE] ...will be taxed to death. </rant> I like the idea. And, competition is what makes us have to innovate to be noticed. Look at places like GoDaddy. Who'd have thought that domain registration was so sexy? Not me! That's why I still …

Member Avatar for BitBlt
0
245
Member Avatar for moone009

The Try/Catch construct wasn't implemented until VB.Net, so you'll have to use the "On Error Go To..." construct. Here's a sample: [CODE]Private Sub Form_Load() On Error GoTo form_load_error . . Your (error-prone) code goes here . form_load_resume: Exit Sub form_load_error: MsgBox "Error " + CStr(Err.Number) + ": " + Err.Description, …

Member Avatar for BitBlt
0
93
Member Avatar for MARKAND911

Here's a snippet of code to update the appropriate column. My table name is a different than yours...but I think you can figure out what to do. [CODE]update b set b.dbUnique = a.id from dbo.mytablewithdups a inner join dbo.mytablewithdups b on a.col2 = b.col2 and a.col3 = b.col3 and a.col4 …

Member Avatar for BitBlt
0
2K
Member Avatar for Lindaz

Company and Project should be parent/child entities. That way you can independently relate them to Results. Question should have a SectionNumber attribute so you can differentiate whether to relate it to a Company or a Project. You should not store an "overall" score. Frankly, you shouldn't even keep a "Section" …

Member Avatar for Lindaz
0
126
Member Avatar for SCass2010

I have found that the best place/time for Intern hunting is near the coffee machine, early in the morning. With the fog rising off the keyboard and the sun just coming through the window, you can sneak right up on them before they wake. They look so cute with their …

Member Avatar for SCass2010
0
161
Member Avatar for Moon466
Member Avatar for BitBlt
0
54
Member Avatar for shambhawi
Member Avatar for kees07

Could be any number of things. Not much detail in your post. In no particular order: How big are the nvarchar and varchar columns? Nullable? Sparsely filled? How many rows in each table? Indexed? Clustered? Fragmentation? What does your server paging look like? Server memory utilization? Disk utilization? Cache Hit …

Member Avatar for crishlay
0
226
Member Avatar for Chetszz
Re: ERD

More detail needed. What help specifically are you looking for? What have you tried? What are you thinking of trying?

Member Avatar for raiden13
0
145
Member Avatar for jacksantho

There is a parameter expected in your SQL statement (which we have not seen). Please show the SQL statement, and the surrounding VB used to construct it. My guess is that your statement is using ODBC syntax incorrectly, so your driver is trying to interpret your varchar as an int. …

Member Avatar for BitBlt
0
1K
Member Avatar for simplyit

SQL Server 2008 has all the necessary geospatial data types. For a little primer on how to use GIS, you should visit the ESRI site. They are the industry leader on that sort of thing.

Member Avatar for jjc_Mtl
0
81
Member Avatar for brisby

Your post doesn't really have enough detail for anyone to help you. Are you asking how to code a menu "click" event procedure? Or do you need to know how to call a function from another module? Or are you looking to find out how to calculate some result?

Member Avatar for ChrisPadgham
0
515
Member Avatar for moone009

Are you using SQL2008? You should check out the "geography" datatype. It's a CLR Assembly datatype with all kinds of .NET methods you can use (specifically the .STLength method to calculate the distance between two geo points). There's a good write-up in SQL2008 BOL. Helps you get away from all …

Member Avatar for jjc_Mtl
0
125
Member Avatar for chamnab

Use the "On Change" event in your first combo box, update the "filter" property on your second combo box and issue a refresh.

Member Avatar for boblarson
0
167
Member Avatar for WolfShield

I'm a little past my teens as well (about 30 years past), but I started programming assembly on a Motorola Odyssey when I was 16 back in the 19mmffmmmms. It was before the days of PC's, so that was all I had. To all you teen programmers, I just say …

Member Avatar for thing789
0
315
Member Avatar for jingda

[QUOTE=Portgas D. Ace;1567936]Why can't we all just speak like Aussies mates! too bloody right we can![/QUOTE] Because, alas, not all of us were born in places that have cool accents. I'm going to go to my room and cry now.:icon_neutral:

Member Avatar for Rik_
0
309
Member Avatar for TGeorge824

Was gonna post some clever SQL, then suddenly remembered this wasn't the SQL Server forum <blush>.

Member Avatar for BitBlt
0
124
Member Avatar for nicoalmontec

For homework help requests, no work posted usually = no effort made by poster, which in turn = no help given. You should post what you HAVE tried and then more assistance should be forthcoming. However (at the risk of offending the purists) I will give one hint: load the …

Member Avatar for nicoalmontec
0
236

The End.