Prompt Inputbox Excel-Access

Maurizio

Well-known Member
Joined
Oct 15, 2002
Messages
691
Office Version
  1. 2007
Platform
  1. Windows
Hi all,
and sorry if this thread should be post to Access Forum [but Excel Forum is very efficient also].

How can I produce this date (date-30) as Excel's example:

Code:
Sub NewSistemDate()
    NewDate = Application.InputBox("new date is ", "Choise new date", Format(Date - 30, "dd/mm/yy"))
End Sub

into Access query criteria:

>=[From Date]

Code:
SELECT none_ANACLF.CLF_RGSOC, none_BOLCTE.BCT_DATA, none_BOLCRI.BCR_DESCR, none_BOLCRI.BCR_PZLOR, Round(([none_BOLCRI]![BCR_PZLOR]*1936.27)/100)*100 AS Lire, none_BOLCTE.BCT_BOL
FROM (none_BOLCRI INNER JOIN none_BOLCTE ON (none_BOLCRI.BCR_AZI = none_BOLCTE.BCT_AZI) AND (none_BOLCRI.BCR_NUM = none_BOLCTE.BCT_NUM) AND (none_BOLCRI.BCR_BOL = none_BOLCTE.BCT_BOL)) INNER JOIN none_ANACLF ON (none_BOLCTE.BCT_CLI = none_ANACLF.CLF_CD) AND (none_BOLCTE.BCT_AZI = none_ANACLF.CLF_AZI)
WHERE (((none_BOLCTE.BCT_DATA)>=[From Date]) AND ((none_BOLCRI.BCR_DESCR) Like "*" & UCase([ARTICOLO]) & "*") AND ((none_BOLCTE.BCT_CLI)=[CODICE Cliente]) AND ((none_BOLCRI.BCR_TCOR)<>1) AND ((none_ANACLF.CLF_MS)=98) AND ((none_BOLCRI.BCR_AZI)=2))
ORDER BY none_BOLCTE.BCT_DATA DESC , none_BOLCRI.BCR_DESCR;

Tia.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hi

Im not too clear on what you need but..

Do you need the Queries Criteris to reference the InputBoxs' result?
 
Upvote 0
Russell Hauf said:
You're right, this is the wrong forum. Please see my reply to your post in the Access forum.

Hi Russell,
btw, thanks.
 
Upvote 0

Forum statistics

Threads
1,221,525
Messages
6,160,327
Members
451,637
Latest member
hvp2262

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top