I have not worked with VB at all and wondered if perhaps there was an all knowing SQL DBA out there that also spoke fluent VB. I am trying to come up with the equilivant T-SQL code for the following VB script (it is a portion of an old Access query) and certainly appreciate any help offered!! Thanks (and sorry about the table names....i didn't create the database)
1) -
-
[EE First Name] & " " & IIf([EE Middle Initial] Is Not Null,[EE Middle Initial] & ". ","") & [EE Last Name] AS [EE Full Name],
-
2) - IIf([Calc Method]="1","",IIf([Calc Method]="2",DateSerial(DatePart("yyyy",Date()),1,1),IIf([Calc Method]="3",IIf(Now()<CDate([Company Data File]![Fiscal Date]),DateAdd("yyyy",-1,CDate([Company Data File]![Fiscal Date])),CDate([Company Data File]![Fiscal Date])),IIf([Calc Method]="4",IIf(Now()<DateSerial(DatePart("yyyy",Now()),DatePart("m",[EE HireDte]),DatePart("d",[EE HireDte])),DateSerial(DatePart("yyyy",DateAdd("yyyy",-1,Now())),DatePart("m",[EE HireDte]),DatePart("d",[EE HireDte])),DateSerial(DatePart("yyyy",Now()),DatePart("m",[EE HireDte]),DatePart("d",[EE HireDte]))),Date())))) AS AD
Thanks again!!
0 3427 Sign in to post your reply or Sign up for a free account.
Similar topics |
by: clusardi2k |
last post by:
Hello,
What can I do about these gcc Red Hat Linux errors.
They are coming from the archive file.
%gcc -I/usr/fltk -O2 -Wall -Wunused -fno-exceptions
-I/usr/X11R6/include -o run main.o
-L/user/fltk/lib -lfltk_images -lfltk -lpng -ljpeg -lz
-L/usr/X11R6/lib -lm -lXext -lX11 -lsupc++ chris.a
-lpci -lm -lccur_rt -lrt
|
by: B_Love |
last post by:
Hey! When trying to compile the code for a ordered vector class I get the following error:
undefined reference to `WinMain@16'
Anyone have any idea what I might be doing wrong? I've been through this code multiple times and have no idea what would cause an error like this, I've never seen one like it before. Any help would be greatly appreciated.
The class is supposed to be able to create a sorted list of vectors of type Object. If an...
|
by: s_4 |
last post by:
Witam!
Mam maly problem... to chyba juz wszyscy wiedza... :-)
do rzeczy:
1. zrobilem maly projekt i wywala mi takie bledy jak w tytule (tylko
takie)
2. kompilujac kazdy plik z osobna nie ma bledow, ale kompilujac caly
projekt to wystepuja powyzsze bledy
3. specjanie na potrzeby tego postu mocno okroilem moj projekt i nadla
wywala ten sam blad tylko w trzech miejscach, a nie w stu piedziesieciu
|
by: Mark |
last post by:
Hi,
I'm trying to write some classes that kind of manage themselves. A
linked list, that links different types of objects. Here's the code...
object.h:
---
class Object
{
int alt;
|
by: Oliver Bleckmann |
last post by:
Damn, what's wrong here?
CGI cgi;
map<string,stringcgiParam = cgi.analyseCgiParam();
cout << cgiParam << endl;
cout << cgiParam << endl;
///////////////////////
#include <iostream>
| |
by: Ehsan68 |
last post by:
Hello
my problem is "Linker Error: Undefined symbol _cga_driver_far in module
maze.c " then Go to
Options
=>Linker
=>Libraries
This will display a box showing
Container Class
Turbo Version
|
by: prakash.mirji |
last post by:
Hello,
I am getting below mention linker error when I tried to link my class
test.C
I use below command to compile test.C
/usr/bin/g++ -g -fpic -fvisibility=default -D_POSIX_SOURCE -DTRACING -
D__EXTENSIONS__ -D__RWCOMPILER_H__ -D_REENTRANT -D_RWCONFIG=8s -
D_RWCONFIG_12d -D_RWSTDDEBUG -DRWDEBUG -o test1 test1.o -L/lib -
|
by: kumarsatish |
last post by:
The following C program in Turbo C is given the following error
" Linker error:-Undefined Symbol _insert_point"
#include<stdio.h>
#include<conio.h>
#define NULL 0
struct list_node
|
by: Ed Dana |
last post by:
I'm trying to create a dynamic two dimensional array. My code looks like
this:
======================================================================
#define DEF_FrameBuffer_H
class FrameBuffer {
public:
FrameBuffer(int prmWidth, int prmHeight, unsigned long prmPen);
FrameBuffer(int prmWidth, int prmHeight);
|
by: sanketiiit |
last post by:
ERROR: Bloodshed Dev c++ undefined reference to cpu_features_init
Perfect Solution to this error.
If ( Installed MinGW )
then:
1. Uninstall MinGW
2. Delete manually MinGW Folder (C:\\ folder)
3. happy coding
I can understand the frustration, as i had with this error.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |