Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inserting present date to all rows of a grid
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00563357
Message ID:
00563385
Views:
20
This message has been marked as the solution to the initial question of the thread.
Replace 'datefield' with actual name of the field with empty date in the code below.
SELECT * ;
  FROM employees ;
  WHERE employees.emp_dept = "118";
  INTO TABLE newreport

<b>REPLACE ALL datefield WITH DATE()</b>
LOCATE   && Move pointer back to the top of the table
If you don't have this field in the source table
SELECT *, DATE() AS today ;
  FROM employees ;
  WHERE employees.emp_dept = "118";
  INTO TABLE newreport
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform