Click here to Skip to main content
15,915,163 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Statement Help... Pin
Timur Fanshteyn28-Apr-03 11:07
Timur Fanshteyn28-Apr-03 11:07 
GeneralRe: SQL Statement Help... Pin
Jason Weibel28-Apr-03 11:43
Jason Weibel28-Apr-03 11:43 
QuestionADO events biased to COM memory model? Pin
Chopper28-Apr-03 9:33
Chopper28-Apr-03 9:33 
GeneralRelated Tables: How to set forgeign key of child table when adding new rows to parenttable Pin
STW27-Apr-03 10:41
STW27-Apr-03 10:41 
GeneralRe: Related Tables: How to set forgeign key of child table when adding new rows to parenttable Pin
perlmunger30-Apr-03 5:05
perlmunger30-Apr-03 5:05 
GeneralRe: Related Tables: How to set forgeign key of child table when adding new rows to parenttable Pin
STW30-Apr-03 5:25
STW30-Apr-03 5:25 
GeneralToolbar and Short Keys/Cuts Pin
STW27-Apr-03 6:30
STW27-Apr-03 6:30 
GeneralQuery Help Pin
NickOne26-Apr-03 12:35
NickOne26-Apr-03 12:35 
Hello,

I have a really generic question (I hope). I have a Query called "Open Job Orders". In it I have a Table called "Job Order" and in that Table there is a field called "Job Order ID". Here is what I want to do (this is all just for me learning and becoming more familiar with DBs and Queries):
I want to create a string and have the Job Order ID returned into that string.

For instance I did the following
Dim blank As String
Dim stDocName As String
stDocName = "Open Job Orders"
DoCmd.OpenQuery stDocName
blank = [Open Job Orders]![Client]![Client Name]

This will open the Query (just so I can see it) but I want blank to be equal to the first Job Order ID.

How can I do this? I know the code above is wrong. Can someone please explain (if it is not too long) the difference between using a '!' or a '.'? Is there a good book on VBA for Access?

Later on what I want to do is be able to press a command button and have all the Job Order IDs that have no value in them yet be replaced with a default value.

If someone could show me how to get to the tables and fields of a query in VBA I woudl love it.

I hope I was descriptive enough!!

Thanks,
NickOne
QuestionHow to get the last inserted and updated id (primary_key) with Sql C# Pin
STW26-Apr-03 3:24
STW26-Apr-03 3:24 
AnswerRe: How to get the last inserted and updated id (primary_key) with Sql C# Pin
David Salter26-Apr-03 10:29
David Salter26-Apr-03 10:29 
GeneralRe: How to get the last inserted and updated id (primary_key) with Sql C# Pin
STW26-Apr-03 23:02
STW26-Apr-03 23:02 
GeneralRe: How to get the last inserted and updated id (primary_key) with Sql C# Pin
David Salter30-Apr-03 11:37
David Salter30-Apr-03 11:37 
AnswerRe: How to get the last inserted and updated id (primary_key) with Sql C# Pin
Chris Maunder26-Apr-03 12:42
cofounderChris Maunder26-Apr-03 12:42 
GeneralFilter and Delete Question Pin
Toni7825-Apr-03 6:54
Toni7825-Apr-03 6:54 
GeneralDefault number of Decimals. Pin
Chris Meech25-Apr-03 5:58
Chris Meech25-Apr-03 5:58 
GeneralRe: Default number of Decimals. Pin
Toni7825-Apr-03 7:07
Toni7825-Apr-03 7:07 
QuestionA mostly working SP ? Pin
Mike Osbahr25-Apr-03 4:14
Mike Osbahr25-Apr-03 4:14 
AnswerRe: A mostly working SP ? Pin
perlmunger30-Apr-03 5:14
perlmunger30-Apr-03 5:14 
Generalinteresting TSQL Q Pin
User 814724-Apr-03 7:49
User 814724-Apr-03 7:49 
QuestiondBASE Technical Specification? Pin
Mark Sanders24-Apr-03 3:30
Mark Sanders24-Apr-03 3:30 
AnswerRe: dBASE Technical Specification? Pin
Anonymous24-Apr-03 7:04
Anonymous24-Apr-03 7:04 
AnswerRe: dBASE Technical Specification? Pin
David Salter24-Apr-03 22:43
David Salter24-Apr-03 22:43 
AnswerRe: dBASE Technical Specification? Pin
STW27-Apr-03 10:44
STW27-Apr-03 10:44 
GeneralConnection Pooling Problem Pin
John Honan24-Apr-03 2:15
John Honan24-Apr-03 2:15 
GeneralRe: Connection Pooling Problem Pin
John Honan24-Apr-03 8:14
John Honan24-Apr-03 8:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.