MontgomeryPete
Instructor
Hello:
I am trying to develop a quick application where "tickets" could be generated quickly for a transportation service. Basically, I am trying to print these with MS Access label function so they can be obtained on demand.
The following sample code should take the text input in Ticket and add records, with an auto number field ([ID]) into Ticket1.
This should be fairly simple if I had learned VBA, but I'm still in the SQL world.
Your help is appreciated.
Thanks, Pete
I am trying to develop a quick application where "tickets" could be generated quickly for a transportation service. Basically, I am trying to print these with MS Access label function so they can be obtained on demand.
The following sample code should take the text input in Ticket and add records, with an auto number field ([ID]) into Ticket1.
Code:
INSERT INTO Tickets1 ( ID, [Company Name], [Address Street], [Address City], Comment, Telephone, [Ticket Comment], [Ticket Value])
SELECT Tickets.ID, Tickets.[Company Name], Tickets.[Address Street], Tickets.[Address City], Tickets.Comment, Tickets.Telephone, Tickets.[Ticket Comment], Tickets.[Ticket Value], Tickets.[Ending Value]
FROM Tickets INNER JOIN Tickets1 ON Tickets.ID = Tickets1.ID
WHERE (((Tickets.ID)<200));
This should be fairly simple if I had learned VBA, but I'm still in the SQL world.
Your help is appreciated.
Thanks, Pete